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 malloc/22050] Linking with -lmcheck does not hook __malloc_initialize_hook correctly


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

--- 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  7ece6cd509703ee151092a50956dbd45ca1b13da (commit)
       via  d8287b36ab44aa2bc3ba59b97433bcf0ab6ae0e8 (commit)
      from  3480ddc40b8f9a9fb277fe1883e359db3db0ab17 (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=7ece6cd509703ee151092a50956dbd45ca1b13da

commit 7ece6cd509703ee151092a50956dbd45ca1b13da
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Oct 16 20:52:34 2017 +0200

    malloc: Use compat_symbol_reference in libmcheck [BZ #22050]

    Since glibc 2.24, __malloc_initialize_hook is a compat symbol.  As a
    result, the link editor does not export a definition of
    __malloc_initialize_hook from the main program, so that it no longer
    interposes the variable definition in libc.so.  Specifying the symbol
    version restores the exported symbol.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d8287b36ab44aa2bc3ba59b97433bcf0ab6ae0e8

commit d8287b36ab44aa2bc3ba59b97433bcf0ab6ae0e8
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Oct 16 20:50:04 2017 +0200

    malloc: Do not compile mcheck-init.o as libc module

    Otherwise, this will lead to a link failure because the reference
    to mcheck is hidden.

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

Summary of changes:
 ChangeLog            |   10 ++++++++++
 malloc/Makefile      |    1 +
 malloc/mcheck-init.c |    3 +++
 3 files changed, 14 insertions(+), 0 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]