This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: [Fwd: Re: Register a signal handler in _dl_start to handle SIGSEGV for dynamic linker]
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: wuxi <wu dot andrew dot xi at gmail dot com>
- Cc: glibc-help <libc-help at sourceware dot org>
- Date: Tue, 2 Sep 2008 08:39:53 -0400
- Subject: Re: [Fwd: Re: Register a signal handler in _dl_start to handle SIGSEGV for dynamic linker]
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=FjvjLP9pF3vEfUCvNEVBvm+GiNezegd68fcI4Q1F8IY=; b=XSXojIjxHmCQ0WW21eH9QUc1Sr4SKfFzfiNYi99Jf/NyJe7WDYsrsIDDvgDW4VuSMe a+246yTkvEelcNm8VDOcHVwfC9BG244wOVCWvbkX7izjhUWyzrrF1gQSa/G6AqUEWVYK 38lNy8GoVl2/rQQYKp0a0UH2zgsm3KxWrBaYw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=mnwZA/Y2zJxlqvxyaM1NFUGaRk2UsXbgbnPXrv2fZPngjTdkc3h/0tSHlkpxwgD1Ob s+XJr1TVyYhh2HdV2vzpahh9O+dn8pCOwrgi+pMcRLkijPHQkrmzZHAeWJqVwxG9A39L SNvi8+vAsPY7jJrBf5m832e22Q03LgMS8febc=
- References: <48BD3263.3040200@gmail.com>
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.