This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Mark internal functions with attribute_hidden
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 17 Aug 2017 05:43:27 -0700
- Subject: Re: [PATCH] Mark internal functions with attribute_hidden
- Authentication-results: sourceware.org; auth=none
- References: <20170817122549.GA15116@gmail.com> <email@example.com>
On Thu, Aug 17, 2017 at 5:37 AM, Florian Weimer <firstname.lastname@example.org> wrote:
> On 08/17/2017 02:25 PM, H.J. Lu wrote:
>> 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.
> This explanation is a bit confusing. I think this benefits other
> architectures, too.
Yes, this is target independent. It should benefit static PIE build for all
targets. On x86, it bypasses GOT/PLT.
> I have an internal_function removal patch which conflicts with this, but
> I can adjust it.