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 common symbol with default version.


Hi H.J.,

: If there is a common symbol with default version, it will cause a
: problem:
: 
: gcc  -O   -c -o test.o test.c
: gcc  -O   -c -o foo.o foo.c
: gcc  -o test test.o foo.o
: test.o: In function `main':
: test.o(.text+0x4): undefined reference to `bar'
: test.o(.text+0xa): undefined reference to `foo@GLIBC_2.0'
: collect2: ld returned 1 exit status
: 
: I am enclosing a patch and a testcase here.
: 
: -- 
: H.J. Lu (hjl@gnu.org)
: ---
: 2000-11-08  H.J. Lu  <hjl@gnu.org>
: 
: 	* elflink.h (elf_link_add_object_symbols): Also add indirect
: 	symbols for common symbols with the default version.

Approved.

Cheers
	Nick

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