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