[Fwd: Re: Register a signal handler in _dl_start to handle SIGSEGV for dynamic linker]
Carlos O'Donell
carlos@systemhalted.org
Tue Sep 2 12:40:00 GMT 2008
On Tue, Sep 2, 2008 at 8:32 AM, wuxi <wu.andrew.xi@gmail.com> wrote:
>> Yes. You should not be making function calls into libc *before* the
>> dynamic loader has relocated itself.
>>
>
> very interesting, I want to know more details here, I roughly read the code
> - here relocation means loading dynamic load into the address space, right?
> (on IA64, I found the address of code will change from X to
> 0x2000000000000000+X)
Please read "Loaders and Linkers" by John R. Levine for a treatment of
this topic.
Cheers,
Carlos.
More information about the Libc-help
mailing list