This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A testcase anad a patch for the __gmon_start__ problem on PPC.


> From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
> Date: Wed, 11 Oct 2000 21:34:44 +0200
> Cc: Ulrich Drepper <drepper@redhat.com>, Jack Howarth <howarth@fuse.net>,
>         libc-alpha@sourceware.cygnus.com, aj@suse.de

> Well, I would agree, but what really puzzles me, why the hell is the start of 
> __gmon_start__ relocated to an absolute branch to 0? I can understand that 
> the reloc entry pointing to __gmon_start__ gets relocated, but why the first 
> instruction word(s)?

It's the PLT entry, not the actual procedure.  The ELF spec says that
a weak symbol has address 0, so the PLT entry gets changed to be an
absolute branch to location 0.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]