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

Peter Tyser ptyser at xes-inc.com
Mon Oct 5 22:07:34 CEST 2009


Hi Wolfgang,

> > 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!

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?

Thanks,
Peter



More information about the U-Boot mailing list