mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: pbl: keep __image_end section
@ 2019-11-01 19:53 Lucas Stach
  2019-11-01 19:53 ` [PATCH 2/2] ARM: force TEXT_BASE to zero only for relocatable build Lucas Stach
  2019-11-04  8:56 ` [PATCH 1/2] ARM: pbl: keep __image_end section Sascha Hauer
  0 siblings, 2 replies; 4+ messages in thread
From: Lucas Stach @ 2019-11-01 19:53 UTC (permalink / raw)
  To: barebox

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>
---
 arch/arm/lib/pbl.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S
index 01ed38449523..b593d0329a7b 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;
 
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-04  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 19:53 [PATCH 1/2] ARM: pbl: keep __image_end section Lucas Stach
2019-11-01 19:53 ` [PATCH 2/2] ARM: force TEXT_BASE to zero only for relocatable build Lucas Stach
2019-11-04  8:56   ` Sascha Hauer
2019-11-04  8:56 ` [PATCH 1/2] ARM: pbl: keep __image_end section Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox