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/21864] xmalloc.o is compiled with -DMODULE_NAME=libc


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

--- Comment #5 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, hjl/pie/hidden has been created
        at  fea827170a44fbfd98f41dd016471f89ac4313d8 (commit)

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

commit fea827170a44fbfd98f41dd016471f89ac4313d8
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Aug 13 07:37:34 2017 -0700

    Add hidden visibility to internal function prototypes

    Add hidden visibility to internal function prototypes to allow direct
    access to internal functions within libc.a without using GOT when the
    compiler defaults to -fPIE.

    Size comparison of elf/ldconfig when the compiler defaults to -fPIE:

    On x86-64:
            text           data     bss     dec     hex
    Before: 619646        20132    5488  645266   9d892
    After : 619502        20132    5488  645122   9d802
    On i686:
            text           data     bss     dec     hex
    Before: 550333        10748    3060  564141   89bad
    After : 546453        10732    3060  560245   88c75

        * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
        the compiler defaulting to -fPIE.
        (hidden_proto): Likewise.
        (hidden_tls_proto): Likewise.
        (__hidden_proto): Likewise.

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

commit 8b789504268a4dec2715a079937b5464e77617d7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Aug 13 07:00:22 2017 -0700

    Mark internal functions with attribute_hidden

    Mark internal functions with attribute_hidden to allow direct access to
    internal functions within libc.a without using GOT when the compiler
    defaults to -fPIE.

        * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
        (__gconv_close): Likewise.
        (__gconv): Likewise.
        (__gconv_find_transform): Likewise.
        (__gconv_lookup_cache): Likewise.
        (__gconv_compare_alias_cache): Likewise.
        (__gconv_load_cache): Likewise.
        (__gconv_get_path): Likewise.
        (__gconv_close_transform): Likewise.
        (__gconv_release_cache): Likewise.
        (__gconv_find_shlib): Likewise.
        (__gconv_release_shlib): Likewise.
        (__gconv_get_builtin_trans): Likewise.
        (__gconv_compare_alias): Likewise.
        * include/dlfcn.h (_dlerror_run): Likewise.
        * include/stdio.h (__fortify_fail_abort): Likewise.
        * include/time.h (__tz_compute): Likewise.
        (__strptime_internal): Likewise.
        * intl/gettextP.h (_nl_find_domain): Likewise.
        (_nl_load_domain): Likewise.
        (_nl_find_msg): Likewise.
        * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
        (EXTRACT_PLURAL_EXPRESSION): Likewise.
        * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
        * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
        (__gai_find_request): Likewise.
        (__gai_remove_request): Likewise.
        (__gai_notify): Likewise.
        (__gai_notify_only): Likewise.
        * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
        * sysdeps/generic/ldsodefs.h (_dl_symbol_value): Likewise.
        (_dl_fini): Likewise.
        (_dl_non_dynamic_init): Likewise.
        (_dl_aux_init): Likewise.
        * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
        * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
        Likewise.
        * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
        (__wcsmbs_clone_conv): Likewise.
        (__wcsmbs_named_conv): Likewise.

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

commit 2de2619f406c3bc88e40455251153d1cc09f1b69
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 10:42:48 2017 -0700

    Enable hidden visibility in libc.a compiled with PIE

    When building libc.a with PIE, enable hidden visibility to allow direct
    access to definitions within libc.a without using GOT.

    Size comparison of elf/ldconfig when the compiler defaults to -fPIE:

    On x86-64:
            text           data     bss     dec     hex
    Before: 619206        20132    5488  644826   9d6da
    After : 619062        20132    5488  644682   9d64a
    On i686:
            text           data     bss     dec     hex
    Before: 556305        10816    3056  570177   8b341
    After : 553688        10756    3056  567500   8a8cc

        * include/libc-symbols.h (attribute_hidden): Enable hidden
        visibility in libc.a compiled with PIE.

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

commit 0f20efcd39a1864d01f0a3bb2aa3dfc75768f32d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Jul 29 21:04:09 2017 -0700

    Don't compile non-lib modules as lib modules [BZ #21864]

    Some programs have more than one source files.  These non-lib modules
    should not be compiled with -DMODULE_NAME=libc.  This patch puts these
    non-lib modules in $(others-extras) and adds $(others-extras) to
    all-nonlib.

        [BZ #21864]
        * Makerules (all-nonlib): Add $(others-extras).
        * catgets/Makefile (others-extras): New.
        * elf/Makefile (others-extras): Likewise.
        * nss/Makefile (others-extras): Likewise.

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

-- 
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]