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/18822] Internal functions are called via PLT


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

--- Comment #28 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  54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f (commit)
       via  1dbbb1ec7af9026bbdc6dd265525de0c3958406c (commit)
      from  2585d7b839559e665d5723734862fbe62264b25d (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=54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f

commit 54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Aug 21 05:32:21 2017 -0700

    Mark __libc_multiple_libcs with attribute_hidden [BZ #18822]

    Since __libc_multiple_libcs is defined as hidden symbol in init-first.c,
    it should be always marked with attribute_hidden.

        [BZ #18822]
        * csu/libc-start.c (__libc_multiple_libcs): Removed.
        * elf/dl-open.c: Include <libc-internal.h>.
        (__libc_multiple_libcs): Removed.
        * elf/dl-sysdep.c: Include <libc-internal.h> instead of
        <hp-timing.h>.
        * include/libc-internal.h (__libc_multiple_libcs): New.
        * misc/sbrk.c: Include <libc-internal.h>.
        (__libc_multiple_libcs): Removed.

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

commit 1dbbb1ec7af9026bbdc6dd265525de0c3958406c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Aug 21 05:31:02 2017 -0700

    Mark internal nss symbols with attribute_hidden [BZ #18822]

    Mark internal nss symbols with attribute_hidden to allow direct access
    within libc.so and libc.a without using GOT nor PLT.

    Tested on x86-64 with and without --disable-nscd.

        [BZ #18822]
        * grp/initgroups.c (__nss_group_database): Removed.
        (__nss_initgroups_database): Likewise.
        * nscd/gai.c (__nss_hosts_database): Likewise.
        * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
        * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
        * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
        * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
        * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
        * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
        attribute_hidden.
        * nss/nsswitch.c (__nss_database_custom): Define only if
        USE_NSCD is defined.
        (__nss_configure_lookup): Use __nss_database_custom only if
        USE_NSCD is defined.
        * nss/nsswitch.h (__nss_database_custom): Declare only if
        USE_NSCD is defined.  Add attribute_hidden.
        (__nss_setent): Add attribute_hidden.
        (__nss_endent): Likewise.
        (__nss_getent_r): Likewise.
        (__nss_getent): Likewise.
        (DEFINE_DATABASE): Declare __nss_##arg##_database.

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

Summary of changes:
 ChangeLog                   |   37 +++++++++++++++++++++++++++++++++++++
 csu/libc-start.c            |    2 --
 elf/dl-open.c               |    3 +--
 elf/dl-sysdep.c             |    2 +-
 grp/initgroups.c            |    2 --
 include/libc-internal.h     |    2 ++
 misc/sbrk.c                 |    4 +---
 nscd/gai.c                  |    3 ---
 nss/XXX-lookup.c            |    2 --
 nss/getXXent.c              |    2 +-
 nss/nsswitch.c              |    4 ++++
 nss/nsswitch.h              |   23 +++++++++++++++--------
 posix/tst-rfc3484-2.c       |    2 --
 posix/tst-rfc3484-3.c       |    2 --
 posix/tst-rfc3484.c         |    2 --
 sysdeps/posix/getaddrinfo.c |    1 -
 16 files changed, 62 insertions(+), 31 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]