Re: [U-Boot] [PATCH] arm64: define _image_binary_end to fix SPL_OF_CONTROL

2016-03-08 Thread Tom Rini
On Tue, Mar 08, 2016 at 08:34:44PM +0900, Masahiro Yamada wrote:

> To make SPL_OF_CONTROL work on ARM64 SoCs, _image_binary_end must be
> defined in the linker script.
> 
>  LD  spl/u-boot-spl
> lib/built-in.o: In function `fdtdec_setup':
> lib/fdtdec.c:1186: undefined reference to `_image_binary_end'
> lib/fdtdec.c:1186: undefined reference to `_image_binary_end'
> make[1]: *** [spl/u-boot-spl] Error 1
> make: *** [spl/u-boot-spl] Error 2
> 
> Note:
> CONFIG_SPL_SEPARATE_BSS must be defined as well on ARM64 SoCs.
> 
> Signed-off-by: Masahiro Yamada 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] arm64: define _image_binary_end to fix SPL_OF_CONTROL

2016-03-08 Thread Masahiro Yamada
To make SPL_OF_CONTROL work on ARM64 SoCs, _image_binary_end must be
defined in the linker script.

 LD  spl/u-boot-spl
lib/built-in.o: In function `fdtdec_setup':
lib/fdtdec.c:1186: undefined reference to `_image_binary_end'
lib/fdtdec.c:1186: undefined reference to `_image_binary_end'
make[1]: *** [spl/u-boot-spl] Error 1
make: *** [spl/u-boot-spl] Error 2

Note:
CONFIG_SPL_SEPARATE_BSS must be defined as well on ARM64 SoCs.

Signed-off-by: Masahiro Yamada 
---

 arch/arm/cpu/armv8/u-boot-spl.lds | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds 
b/arch/arm/cpu/armv8/u-boot-spl.lds
index 4df339c..cc427c3 100644
--- a/arch/arm/cpu/armv8/u-boot-spl.lds
+++ b/arch/arm/cpu/armv8/u-boot-spl.lds
@@ -54,6 +54,8 @@ SECTIONS
*(.__end)
} >.sram
 
+   _image_binary_end = .;
+
.bss_start : {
. = ALIGN(8);
KEEP(*(.__bss_start));
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot