This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [committed] Return to caller when _dl_fixup fails on hppa
- From: John David Anglin <dave dot anglin at bell dot net>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Carlos O'Donell <carlos at systemhalted dot org>
- Date: Sun, 16 Jul 2017 15:46:39 -0400
- Subject: Re: [committed] Return to caller when _dl_fixup fails on hppa
- Authentication-results: sourceware.org; auth=none
- References: <3C95024E-2059-4D16-B135-EFB4A57D5591@bell.net> <87r2xggqnr.fsf@linux-m68k.org>
On 2017-07-16, at 2:52 PM, Andreas Schwab wrote:
> On Jul 16 2017, John David Anglin <dave.anglin@bell.net> wrote:
>
>> The most problematic function in this regard is __gmon_start__.
>
> The caller needs to check for NULL before calling it.
That's assumed. However, it doesn't work on hppa. The caller has access to a non NULL pointer
to a function descriptor. In the typical case with deferred binding, the function pointer is not resolved
until _dl_fixup is called.
Dave
--
John David Anglin dave.anglin@bell.net