On Wed, 24 Oct 2018, Martin Sebor wrote:

> But if you do want to avoid the attribute on declarations of
> these functions regardless it should be safe to add it after
> the declaration in the .c file, like so:
> 
> __hidden_ver1 (strcmp, __GI_strcmp, __redirect_strcmp)
>   __attribute__ ((visibility ("hidden"), copy (strcmp)));

The obvious question there is whether the glibc patch should use copy 
(local) as well as copy (name) in the definition of __hidden_ver1.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to