This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 00/58] Hide internal functions in libc.so
- From: Florian Weimer <fweimer at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, libc-alpha at sourceware dot org
- Date: Fri, 1 Sep 2017 20:16:07 +0200
- Subject: Re: [PATCH 00/58] Hide internal functions in libc.so
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BA17966CA3
- References: <20170901180029.9527-1-hjl.tools@gmail.com>
On 09/01/2017 07:59 PM, H.J. Lu wrote:
> On x86,
>
> # readelf -rW libc_pic.a | grep " __" | grep PLT32 | awk '{ print $5 }' | sort | uniq
>
> shows that many internal functions are called via PLT in libc.so. This
> series of patches hides internal functions to allow direct access within
> libc.so and libc.a without using GOT nor PLT.
I think we need to automate the generation of hidden attributes (or the
hidden aliases).
Any ideas how we can do this?
Thanks,
Florian