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 #69 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  8ed3b64330cd24e2a17d8794a871cab034707a33 (commit)
       via  ef9b6f73f45a46d079018f63e2d9184eaa0db1d5 (commit)
      from  8da92e722ca66e35003abf64a77ae529f9989e6a (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=8ed3b64330cd24e2a17d8794a871cab034707a33

commit 8ed3b64330cd24e2a17d8794a871cab034707a33
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 14:34:18 2017 -0700

    Mark internal stdlib functions with attribute_hidden [BZ #18822]

    Mark internal stdlib functions with attribute_hidden to allow direct
    access within libc.so and libc.a without using GOT nor PLT.  __realpath
    is hidden with libc_hidden_proto and libc_hidden_def since the exported
    realpath is an alias of __realpath.

        [BZ #18822]
        * include/stdlib.h (__random): Add attribute_hidden.
        (__random_r): Likewise.
        (__srandom_r): Likewise.
        (__initstate_r): Likewise.
        (__setstate_r): Likewise.
        (__erand48_r): Likewise.
        (__nrand48_r): Likewise.
        (__jrand48_r): Likewise.
        (__srand48_r): Likewise.
        (__seed48_r): Likewise.
        (__lcong48_r): Likewise.
        (__drand48_iterate): Likewise.
        (__setenv): Likewise.
        (__unsetenv): Likewise.
        (__clearenv): Likewise.
        (__ptsname_r): Likewise.
        (__posix_openpt): Likewise.
        (__add_to_environ): Likewise.
        (__realpath): Add libc_hidden_proto.
        (__ecvt_r): Likewise.
        (__fcvt_r): Likewise.
        (__qecvt_r): Likewise.
        (__qfcvt_r): Likewise.
        * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
        * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.

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

commit ef9b6f73f45a46d079018f63e2d9184eaa0db1d5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 14:33:26 2017 -0700

    Mark 3 *_internal functions with attribute_hidden [BZ #18822]

    Mark __ptsname_internal, __mktime_internal and __fopen_internal with
    attribute_hidden to allow direct access to them within libc.so and
    libc.a without using GOT nor PLT.

        [BZ #18822]
        * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
        * include/time.h (__mktime_internal): Likewise.
        * libio/iolibio.h (__fopen_internal): Likewise.

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

Summary of changes:
 ChangeLog             |   36 +++++++++++++++++++++++++++++++++
 include/stdlib.h      |   53 ++++++++++++++++++++++++++++++------------------
 include/time.h        |    2 +-
 libio/iolibio.h       |    3 +-
 misc/efgcvt_r.c       |    7 +++++-
 stdlib/canonicalize.c |    1 +
 6 files changed, 79 insertions(+), 23 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]