This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81310] Is __attribute__ alias on variables valid?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81310

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
It's valid on variables (but hidden aliases to variables in shared 
libraries don't work properly, and the static linker has special handling 
for the case where a shared library exports both variable __foo and a weak 
alias foo, to ensure that works properly both for programs that only 
reference foo and for programs that define their own foo).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]