linking .common and .weak definitions
Alan Modra
amodra@bigpond.net.au
Tue Feb 11 00:57:00 GMT 2003
bfd/elflink.h has this to say:
We treat a common symbol as a definition if the symbol in the
shared library is a function, since common symbols always
represent variables; this can cause confusion in principle, but
any such confusion would seem to indicate an erroneous program or
shared library. We also permit a common symbol in a regular
object to override a weak symbol in a shared object.
I'm curious as to why this code isn't working for you.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Gcc
mailing list