This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Versioned symbol linking bug
- From: Elias Athanasopoulos <elathan at phys dot uoa dot gr>
- To: binutils at sources dot redhat dot com
- Cc: Daniel Jacobowitz <drow at mvista dot com>
- Date: Mon, 17 Feb 2003 19:14:29 +0200
- Subject: Re: Versioned symbol linking bug
- References: <20030217164809.GA18104@nevyn.them.org>
Hi Daniel,
On Mon, Feb 17, 2003 at 11:48:09AM -0500, Daniel Jacobowitz wrote:
> And this sequence:
> $ gcc -c test.c
> $ ld --version-script test.ver -shared -o test.so test.o
> $ ld -shared -o test2.so test.so test.o
>
> ld: test2.so: undefined versioned symbol name function@@WXGTK_2.4
> ld: failed to set dynamic section sizes: Bad value
>
> Shouldn't the unversioned copy of function be able to coexist with the
> versioned copy? And is there anything we can do about that inaccurate error
> message?
To add a little more entropy to the problem, try this:
% ld -shared -o test2.so test.o test.so
It works (?). :-) No errors are reported and:
% nm test2.so
000012a4 A __bss_start
00001238 A _DYNAMIC
000012a4 A _edata
000012a4 A _end
0000022c T f
00001298 A _GLOBAL_OFFSET_TABLE_
Regards,
Elias
--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky