]> sourceware.org Git - glibc.git/commit
hppa: fix dladdr [BZ #19415]
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 2 Jan 2016 14:48:18 +0000 (09:48 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Jan 2016 07:19:26 +0000 (02:19 -0500)
commit48025aa9ed3b9a5f5f3b1310eec79b66fb645c17
treeca262547243148a546d8989f77b5180782374083
parent6e76c11f89e9bd0b8bb7185dc754bf6c7dac572b
hppa: fix dladdr [BZ #19415]

The attached patch fixes dladdr on hppa.

Instead of using the generic version of _dl_lookup_address, we use an
implementation more or less modeled after __canonicalize_funcptr_for_compare()
in gcc.  The function pointer is analyzed and if it points to the
trampoline used to call _dl_runtime_resolve just before the global
offset table, then we call _dl_fixup to resolve the function pointer.
Then, we return the instruction pointer from the first word of the
descriptor.

The change fixes the testcase provided in [BZ #19415] and the Debian
nss package now builds successfully.
ChangeLog
sysdeps/hppa/dl-fptr.c
sysdeps/hppa/dl-lookupcfg.h
This page took 0.398675 seconds and 5 git commands to generate.