summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-08-18 07:04:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-22 10:52:19 +0200
commit7deef2fa981b81426443281f84b142080f46cf74 (patch)
tree748b283bfdee8525b9c78b4e207ba9f035c3ae6d /arch/mips
parent867681db2efe997d3f5c3b1ba1bebb366a336110 (diff)
downloadbarebox-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/mips')
-rw-r--r--arch/mips/lib/pbl.lds.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S
index 75069b0c50..413f24b9ab 100644
--- a/arch/mips/lib/pbl.lds.S
+++ b/arch/mips/lib/pbl.lds.S
@@ -48,7 +48,8 @@ SECTIONS
.piggydata : {
*(.piggydata)
}
- __piggydata_end = . - BASE;
+
+ .image_end : { KEEP(*(.__image_end)) }
pbl_image_size = .;