Versioned symbol linking bug

Elias Athanasopoulos elathan@phys.uoa.gr
Mon Feb 17 17:16:00 GMT 2003


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 

	



More information about the Binutils mailing list