summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2019-10-01 14:45:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-02 09:14:32 +0200
commit59523901d29386f0bf86750b6bf8c8222ab22a33 (patch)
tree41699bb07b0bd1bf26019900c52ef6facd891301
parentcac03a8735bf1e73b2b703b9478b1813fa354487 (diff)
downloadbarebox-59523901d29386f0bf86750b6bf8c8222ab22a33.tar.gz
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 <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/lib64/barebox.lds.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/lib64/barebox.lds.S b/arch/arm/lib64/barebox.lds.S
index b3e6843..694bbca 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*) }