ARM: Multi PBL: Fix image calculation for certain toolchains
The current way to calculate the compressed image position works
with the OSELAS toolchains, but not with the Debian/Ubuntu toolchains.
For these toolchains &image_end_marker already returns the correct
address, adding global_variable_offset() to it is wrong.

The solution seems to be to put the image_end_marker into a different
object file so that the compiler cannot play any tricks to resolve
the address internally in the object file.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 494bb4f commit 537a18b869a2bbade323716219d731ed3977c410
@Sascha Hauer Sascha Hauer authored on 17 Sep 2018
Showing 4 changed files
View
arch/arm/cpu/sections.c
View
arch/arm/cpu/uncompress.c
View
arch/arm/include/asm/sections.h
View
arch/arm/lib/pbl.lds.S