This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/3] Add hidden_proto for getauxval
On 06/09/2017 07:45 PM, Richard Henderson wrote:
> On 06/08/2017 11:58 PM, Florian Weimer wrote:
>> On 06/09/2017 12:57 AM, Richard Henderson wrote:
>>> +libc_hidden_weak (getauxval)
>>
>> This should be libc_hidden_proto (__getauxval). I don't think you can
>> call getauxval from libc.so because it leads to a namespace violation.
>
> From libc.so you certainly can, because we'll actually call __GI_getauxval.
Yes, but not from libc.a, which is better to have the hidden alias for
the __ variant.
Florian