[PATCH] Avoid relocation in fptr code used by rtld.

Carlos O'Donell carlos@codesourcery.com
Thu Jul 7 15:13:00 GMT 2011


On 7/7/2011 10:36 AM, Ulrich Drepper wrote:
> On Thu, Jul 7, 2011 at 10:26, Carlos O'Donell<carlos@codesourcery.com>  wrote:
>> It wouldn't, I wrote the wrong thing, I meant to write "It's a .text
>> relative relocation against .data to fixup..."
>
> And what is wrong with that?  It's a relative relocation.  All
> platforms have relative relocations in ld.so.  why would this be
> different on PA?

Yes, but this is in the early startup code that handles relocations, and 
it creates an ordering problem. Namely that this relative relocation 
needs to be handled before the code in question can be used to process 
other relocations e.g. OPD relocs.

Thus ld.so.1 segfaults at startup when trying to process an OPD reloc 
because the relative reloc hasn't fixed up local yet.

My understanding is that we should not require any special order of 
relocation processing. Was I wrong in that understanding?

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos@codesourcery.com
+1 (613) 963 1026



More information about the Libc-alpha mailing list