A testcase anad a patch for the __gmon_start__ problem on PPC.
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Thu Oct 12 13:19:00 GMT 2000
On Thu, 12 Oct 2000, Franz Sirl wrote:
> At 22:45 11.10.00, Geoff Keating wrote:
> >OK, this is slightly wrong. The right test would be that the first
> >instruction at __gmon_start__ is 'bl,a 0'.
>
> Yes, either that or 'addi r11,r0,xxxx' for lazy relocation (as HJ noted).
> The test for 0 actually was meant as a shortcut to avoid doing 2 compares,
> but this cannot work when gmon_start points to a PLT entry and not the
> real function as I thought. I'll do a real patch and test it.
Here is the patch, it works fine for me after recompiling the affected libs
against the new crt*.o files.
Franz.
* sysdeps/generic/initfini.c (GMON_START_COMPAT): New macro.
(call_gmon_start): Use it.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl and fcntl64.
More information about the Libc-alpha
mailing list