[PATCH 00/58] Hide internal functions in libc.so

H.J. Lu hjl.tools@gmail.com
Fri Sep 1 19:42:00 GMT 2017


On Fri, Sep 1, 2017 at 11:16 AM, Florian Weimer <fweimer@redhat.com> wrote:
> 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).

I'd love to see it.

> Any ideas how we can do this?
>

It won't be easy.

-- 
H.J.



More information about the Libc-alpha mailing list