[U-Boot-Users] Changing u-boot relocation scheme

Grant Likely grant.likely at secretlab.ca
Sat Jul 26 14:48:26 CEST 2008


On Sat, Jul 26, 2008 at 3:53 AM, kenneth johansson <kenneth at southpole.se> wrote:
> On Sat, 2008-07-26 at 01:48 -0400, Grant Likely wrote:
>> On Thu, Jul 24, 2008 at 2:09 PM, Kenneth Johansson <kenneth at southpole.se> wrote:
>> > On Thu, 2008-07-24 at 10:37 -0700, vb wrote:
>> >> But as you pointed out, this would work on ppc only (with a 'good'
>> >> compiler), and still remains to be proven, I will get to it a bit
>> >> later.
>> >
>> > I have run u-boot with everything compiled with -mrelocatable and normal
>> > relocation fixup code removed so I know it works fine. So consider it
>> > proven. But since it apparently is a problem in some situation the best
>> > is probably to make it a configuration option.
>>
>> Can you test against various versions of gcc?  That is where I ran into trouble.
>
> Well If you have a specific version you know is not working I could test
> that.

gcc 4.0 worked for me.  Anything newer or older seemed to behave
differently.  Looking at the size of the .got and .fixup sections
seems to be a good indication of if things are being placed correctly.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.




More information about the U-Boot mailing list