[U-Boot-Users] [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections
Wolfgang Denk
wd at denx.de
Sat Jan 12 20:34:30 CET 2008
In message <1197026214-31034-1-git-send-email-wd at denx.de> you wrote:
> With recent toolchain versions, some boards would not build because
> or errors like this one (here for ocotea board when building with
> ELDK 4.2):
> ppc_4xx-ld: section .bootpg [fffff000 -> fffff23b] overlaps section .bss [fffee900 -> fffff8ab]
>
> For many boards, the .bss section is big enough that it wraps around
> at the end of the address space (0xFFFFFFFF), so the problem will not
> be visible unless you use a 64 bit tool chain for development. On
> some boards however, changes to the code size (due to different
> optimizations) we bail out with section overlaps like above.
>
> The fix is to add the NOLOAD attribute to the .bss and .sbss
> sections, telling the linker that .bss does not consume any space in
> the image.
>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
Applied, after re-rworking it for the boards changed, renamed or
added meanwhile.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Your own mileage may vary.
More information about the U-Boot
mailing list