This is the mail archive of the binutils@sources.redhat.com 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]

Re: A patch for default version and archive


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

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