This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: LOCAL symbols discarded at link time


On Wed, Mar 02, 2016 at 04:34:59PM +0000, Mark Hills wrote:
> I'm am experiencing interactions at link time, despite "LOCAL" symbols and 
> applying careful use of 'visibility':

By converting weak symbols to locals you are subverting the mechanism
used by the toolchain to provide just one instance of a C++ class that
appears in multiple object files.  Don't expect this to work. 

See "C++ one definition rule".

-- 
Alan Modra
Australia Development Lab, IBM


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