]> sourceware.org Git - glibc.git/commit
Add hidden visibility to internal function prototypes
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 21 Aug 2017 12:50:38 +0000 (05:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 21 Aug 2017 12:50:52 +0000 (05:50 -0700)
commit568ff4296c72534e49c8d9c83c33f3a0069cccc7
treebededb41a0b181d3f4ab13868b9169819244808a
parent7c41b4a1315fc4415e468bbac94f77ecdb74f4c8
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
building libc.a.
(hidden_proto): Likewise.
(hidden_tls_proto): Likewise.
(__hidden_proto): Likewise.
ChangeLog
include/libc-symbols.h
This page took 0.04006 seconds and 5 git commands to generate.