[U-Boot] [PATCH] relocation: Do not relocate NULL pointers.

Wolfgang Denk wd at denx.de
Wed Sep 23 20:23:14 CEST 2009


Dear Peter Tyser,

In message <1253710639.3968.19.camel at ptyser-laptop> you wrote:
> 
> My "fix" to the linker script was to change:
> __bss_start = .;
> into:
> __bss_start = . | 4;
> 
> ie, a big hack, but it did work:)  I'll take a peek at a more proper
> link script workaround.

32 bit alignment of the BSS segment might not be sufficient. Be
careful!

> Nice!  It'd be great to have the magical 20 lines of assembly put into
> some semi-understandable c.

:-)

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
It is impractical for  the  standard  to  attempt  to  constrain  the
behavior  of code that does not obey the constraints of the standard.
                                                          - Doug Gwyn


More information about the U-Boot mailing list