[PATCH] Mark internal functions with attribute_hidden
H.J. Lu
hjl.tools@gmail.com
Thu Aug 17 18:58:00 GMT 2017
On Thu, Aug 17, 2017 at 7:01 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> On Thu, 17 Aug 2017, H.J. Lu wrote:
>
>> Yes, this is target independent. It should benefit static PIE build for all
>> targets. On x86, it bypasses GOT/PLT.
>
> Specifically, on x86 I'd consider this (making functions hidden if they
> are not exported from the shared library containing their definitions) to
> be part of the fix for bug 18822.
>
You are right. Here is the same patch with libc.so size comparison on
i686 and x86-64.
OK for trunk?
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Mark-internal-functions-with-attribute_hidden-BZ-188.patch
Type: text/x-patch
Size: 17692 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170817/ea19f227/attachment.bin>
More information about the Libc-alpha
mailing list