
Hello Albert,
Albert ARIBAUD wrote:
Le 03/10/2010 20:03, Wolfgang Denk a écrit :
Dear Reinhard Meyer,
In message4CA6E8E5.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