diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-08-18 07:04:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-08-22 10:52:19 +0200 |
commit | 7deef2fa981b81426443281f84b142080f46cf74 (patch) | |
tree | 748b283bfdee8525b9c78b4e207ba9f035c3ae6d /arch/riscv | |
parent | 867681db2efe997d3f5c3b1ba1bebb366a336110 (diff) | |
download | barebox-7deef2fa981b81426443281f84b142080f46cf74.tar.gz barebox-7deef2fa981b81426443281f84b142080f46cf74.tar.xz |
pbl: replace __piggydata_end with __image_end
__piggydata_end and __image_end used to be synonyms before the addition
of external firmware. Now that external firmware is located after
__piggydata_end, code using it needs to be revisited.
There's no reason to have code reference __piggydata_end. Either they
want all the rest of the image, so they should use __image_end instead
or they want just the piggy data, in which case they can read the data
size embedded into the piggydata itself.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220818050447.2072932-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/lib/pbl.lds.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/lib/pbl.lds.S b/arch/riscv/lib/pbl.lds.S index e238b2bfd3..ccf64fc6d3 100644 --- a/arch/riscv/lib/pbl.lds.S +++ b/arch/riscv/lib/pbl.lds.S @@ -74,8 +74,6 @@ SECTIONS .piggydata : { *(.piggydata) } - __piggydata_end = .; - .image_end : { KEEP(*(.__image_end)) } pbl_image_size = .; |