This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: A patch for default version and archive
- To: hjl at valinux dot com
- Subject: Re: A patch for default version and archive
- From: Nick Clifton <nickc at redhat dot com>
- Date: Mon, 13 Nov 2000 17:34:18 -0800
- CC: binutils at sourceware dot cygnus dot com
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