This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix dladdr on hppa


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


Attachment: submitted-dladdr.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]