From 59523901d29386f0bf86750b6bf8c8222ab22a33 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 1 Oct 2019 14:45:04 +0200 Subject: ARM: aarch64: add image markers to linker script The __image_start and __image_end marker are used by barebox to calculate the size of the barebox binary inside the RAM. Without the definitions barebox calculates its own size to zero, which works until a certain size is exceeded, than the PBL will place the binary lower into memory than the calculation inside barebox. Fix this by adding the appropriate image markers to the linker script. Signed-off-by: Rouven Czerwinski Signed-off-by: Sascha Hauer --- arch/arm/lib64/barebox.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/lib64/barebox.lds.S b/arch/arm/lib64/barebox.lds.S index b3e6843a15..694bbcaaf1 100644 --- a/arch/arm/lib64/barebox.lds.S +++ b/arch/arm/lib64/barebox.lds.S @@ -31,6 +31,8 @@ SECTIONS . = TEXT_BASE; #endif + .image_start : { *(.__image_start) } + #ifndef CONFIG_PBL_IMAGE PRE_IMAGE #endif @@ -112,6 +114,8 @@ SECTIONS _edata = .; + .image_end : { *(.__image_end) } + . = ALIGN(4); .__bss_start : { *(.__bss_start) } .bss : { *(.bss*) } -- cgit v1.2.3