[PATCH 2/3] Add hidden_proto for getauxval

Richard Henderson rth@twiddle.net
Fri Jun 9 22:11:00 GMT 2017


On 06/09/2017 10:49 AM, Florian Weimer wrote:
> 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.

Quite right.


r~



More information about the Libc-alpha mailing list