A patch for default version and archive
Nick Clifton
nickc@redhat.com
Mon Nov 13 17:34:00 GMT 2000
Hi H.J.,
: Just clarify my patch. The default versioned symbol, foo@@verion1,
: will resolve references to foo and foo@verion1. That is how symbol
: versioning works. When you do
:
: # gcc ... libfoo.a ...
:
: the linker won't pull in a .o file from libfoo.a unless it sees
: references to symbols defined in libfoo.a before reading libfoo.a.
: There is a bug in elf_link_add_archive_symbols. When the linker sees
: a definition like foo@@verion1, it only checks references to foo. It
: misses foo@verion1. That is why
:
: # gcc -o test1 test.o foo.o
:
: works, but
:
: # gcc -o test1 test.o libfoo.a
:
: doesn't. My patch adds the check for references to foo@verion1. Let
: me know if there are questions.
Well this makes sense to me.
Uli - do you still have any objections to this patch ? If so, please
could you explain what they are ?
Cheers
nick
More information about the Binutils
mailing list