[PATCH] Fix dladdr on hppa

John David Anglin dave.anglin@bell.net
Sat Jan 2 14:48:00 GMT 2016


The attached patch fixes dladdr on hppa.

Instead of using the generic version of _dl_lookup_address, we use an implementation more or less modelled
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.

Please install if okay.

Thanks,
Dave
--
John David Anglin	dave.anglin@bell.net


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submitted-dladdr.diff.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160102/794edca9/attachment.txt>


More information about the Libc-alpha mailing list