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

Wolfgang Denk wd at denx.de
Mon Oct 5 23:18:11 CEST 2009


Dear Peter Tyser,

In message <1254773254.24664.657.camel at localhost.localdomain> you wrote:
> 
> > 32 bit alignment of the BSS segment might not be sufficient. Be
> > careful!
> 
> I've tried a few ways to ensure the BSS isn't at address 0x0, and they
> all seem to have their shortcomings.  I'm currently leaning towards
> doing something along the lines of the above, ie ORing 0x10 into the BSS
> address.
> 
> I had assumed 8 or 16 bit alignment of the BSS would be sufficient.
> Could you give a little background on your warning above about 32 bit
> alignment being insufficient?

I don't know all flavours of Power machines, but gcc seems to align
"double" on 64 bit boundaries. This makes me think it might be needed.

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
"355/113 -- Not the famous irrational number PI,  but  an  incredible
simulation!"


More information about the U-Boot mailing list