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

Geoff Keating geoffk@cygnus.com
Wed Oct 11 13:09:00 GMT 2000


> 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>


More information about the Libc-alpha mailing list