diff options
author | Lucas Stach <dev@lynxeye.de> | 2019-11-01 20:53:37 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-04 09:28:36 +0100 |
commit | 8685748d34c68e1b6d446bbe1a481ac257b0cb6c (patch) | |
tree | 46a86094204c6e82330d4d902d8c871e4d8c7c80 /arch | |
parent | a9e96c1a5cef5fe975e898bff04867b7a697fb70 (diff) | |
download | barebox-8685748d34c68e1b6d446bbe1a481ac257b0cb6c.tar.gz barebox-8685748d34c68e1b6d446bbe1a481ac257b0cb6c.tar.xz |
ARM: pbl: keep __image_end section
Not all architectures are referencing the image_end section from
code, in which case the linker is free to drop the section, which
then messes up the calculation of the _barebox_image_size linker
variable.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/lib/pbl.lds.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S index 01ed384495..b593d0329a 100644 --- a/arch/arm/lib/pbl.lds.S +++ b/arch/arm/lib/pbl.lds.S @@ -114,7 +114,7 @@ SECTIONS } __piggydata_end = .; - .image_end : { *(.__image_end) } + .image_end : { KEEP(*(.__image_end)) } pbl_image_size = . - BASE; |