This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Versioned symbol linking bug
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 17 Feb 2003 11:48:09 -0500
- Subject: Versioned symbol linking bug
I'm not exactly sure what's going on; if this isn't a bug, please tell me
so...
Consider this file:
int function()
{
return 1;
}
And this version script:
WXGTK_2.4 {
*;
};
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?
[This is coming from crtsaveres.o in GCC for PowerPC/Linux; the actual
function is _restfpr_26_x.]
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer