This is the mail archive of the glibc-bugs@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]

[Bug libc/19415] dladdr returns wrong names on hppa


https://sourceware.org/bugzilla/show_bug.cgi?id=19415

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  48025aa9ed3b9a5f5f3b1310eec79b66fb645c17 (commit)
      from  6e76c11f89e9bd0b8bb7185dc754bf6c7dac572b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=48025aa9ed3b9a5f5f3b1310eec79b66fb645c17

commit 48025aa9ed3b9a5f5f3b1310eec79b66fb645c17
Author: John David Anglin <dave.anglin@bell.net>
Date:   Sat Jan 2 09:48:18 2016 -0500

    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.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   |    9 ++++++
 sysdeps/hppa/dl-fptr.c      |   59 ++++++++++++++++++++++++++++++++----------
 sysdeps/hppa/dl-lookupcfg.h |    4 +--
 3 files changed, 55 insertions(+), 17 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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