A patch for common symbol with default version.
Nick Clifton
nickc@redhat.com
Mon Nov 13 10:53:00 GMT 2000
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
More information about the Binutils
mailing list