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/18520] h_errno namespace


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

--- Comment #1 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  9acacaa02f3b75fddc07a56f3d848df45281a5de (commit)
      from  4b9c2b707b1383b4e3b3c50e445afd0af8922788 (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=9acacaa02f3b75fddc07a56f3d848df45281a5de

commit 9acacaa02f3b75fddc07a56f3d848df45281a5de
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jun 12 10:10:18 2015 +0000

    Fix h_errno namespace (bug 18520).

    The 2008 edition of POSIX removed h_errno, but some functions still
    bring in references to the h_errno external symbol.  As this symbol is
    not a part of the public ABI (only __h_errno_location is), this patch
    fixes this by renaming the GLIBC_PRIVATE TLS symbol to __h_errno.

    Tested for x86_64 and x86 (testsuite, and comparison of installed
    shared libraries).  Disassembly of all shared libraries using h_errno
    changes because of the renaming (and changes to associated TLS / GOT
    offsets in some cases); disassembly of libpthread on x86_64 changes
    more substantially because the enlargement of .dynsym affects
    subsequent addresses.

        [BZ #18520]
        * inet/herrno.c (h_errno): Rename to __h_errno.
        (__libc_h_errno): Define as alias of __h_errno not h_errno.
        * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
        to __h_errno instead of h_errno.
        * nptl/herrno.c (h_errno): Rename to __h_errno.
        (__h_errno_location): Refer to __h_errno not h_errno.
        * resolv/Versions (h_errno): Rename to __h_errno.
        * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
        Remove variable.
        (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.

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

Summary of changes:
 ChangeLog        |   14 ++++++++++++++
 NEWS             |    3 ++-
 conform/Makefile |    2 --
 include/netdb.h  |    2 +-
 inet/herrno.c    |    4 ++--
 nptl/herrno.c    |    4 ++--
 resolv/Versions  |    2 +-
 7 files changed, 22 insertions(+), 9 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]