LOCAL symbols discarded at link time
Alan Modra
amodra@gmail.com
Fri Mar 11 11:40:00 GMT 2016
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
More information about the Binutils
mailing list