bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two instances of global from shared lib linked with -Bsymbolic


From: Ian Lance Taylor
Subject: Re: two instances of global from shared lib linked with -Bsymbolic
Date: 06 Apr 2004 21:41:10 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Alan Modra <address@hidden> writes:

> If fun1 is made protected, then the library will behave as Rafal
> desires.  See gcc's info on function attributes.
> 
> void __attribute__ ((visibility ("protected")))
> fun1 () { ... }
> 
> I've thought before that a useful extension to our ld version scripts
> would be to have a "protected" keyword in addition to "global" and
> "local".

Hmmm, yes, for a function that will work, but will it really work for
a global variable?  How does it work in the presence of COPY
relocations?

Ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]