[U-Boot] ARM relocation, question to Heiko

Heiko Schocher
2010-10-04T06:08:32Z

Hello Albert,

Albert ARIBAUD wrote:
> Le 03/10/2010 20:03, Wolfgang Denk a ?crit :
>
>> Dear Reinhard Meyer,
>>
>> In message<4CA6E8E5.2090605@emk-elektronik.de> you wrote:
>>>> And yes, this means the content arrays of pointers such as init_sequence
>>>> is not relocated. Been there, done that, can give you one of the
>>>> tee-shirts I got :)
>> It should work.
>>
>> Eventually we need to find out which sort of tweaking of compiler
>> and/or linker options is needed on ARM.
>
> While looking for enhancements to Heiko's arm relocation patches, I have
> gone through all relocation related compiler and linker options, and
> then some. -fPIC / -fPIE will not generate GOT fixups for data
> containing pointers, and I have found no additional option that will.

Yep, that was also my problem ...

> OTOH, -pie will generate this kind of fixup (and all others needed) in
> the form of .rel.dyn relocations, as Bill describes.

Ah! Have to look in this, maybe thats the way we have to go ...

bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany