This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch hjl/pie/static updated. glibc-2.25-840-gdc0c5bd


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/static has been updated
       via  dc0c5bd2863941fd43339aa68e6f9cbf9c5ee60d (commit)
      from  9190f48d90a8ce7de7d806a8622ad4cee17bc46a (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 -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=dc0c5bd2863941fd43339aa68e6f9cbf9c5ee60d

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

    Use hidden visibility for libc.a with PIC
    
    Size comparison of static PIE elf/ldconfig:
    
    Before on x86-64:
       text	   data	    bss	    dec	    hex
     866113	  22952	   6336	 895401	  da9a9
    After on x86-64:
       text	   data	    bss	    dec	    hex
     865921	  22952	   6336	 895209	  da8e9
    Before on i686:
       text	   data	    bss	    dec	    hex
     782692	  12296	   3748	 798736	  c3010
    After on i686:
     781153	  12280	   3748	 797181	  c29fd

diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 3310e3a..77de193 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -355,7 +355,8 @@ for linking")
   strong_alias(real, name)
 #endif
 
-#if defined SHARED || defined LIBC_NONSHARED
+#if defined SHARED || defined LIBC_NONSHARED \
+  || (defined PIC && IS_IN (libc))
 # define attribute_hidden __attribute__ ((visibility ("hidden")))
 #else
 # define attribute_hidden

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

Summary of changes:
 include/libc-symbols.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]