gold patch committed: Check version in archive maps

Ian Lance Taylor
Wed Mar 18 05:12:00 GMT 2009

Symbols in object files may have versions appended with an '@'
character.  It follows that this may happen in symbols in archive maps.
The GNU linker checks for that possibility in
_bfd_elf_archive_symbol_lookup in elflink.c.  I committed this patch to
gold to add support for this, along with a test case.


2009-03-17  Ian Lance Taylor  <>

	* (Archive::add_symbols): Check for a version attached
	to the symbol name in the archive map.
	* testsuite/ (check_PROGRAMS): Add ver_test_11.
	(ver_test_11_SOURCES, ver_test_11_DEPENDENCIES): Define.
	(ver_test_11_LDFLAGS, ver_test_11_LDADD): Define.
	(ver_test_11.a): New target.
	* testsuite/ Rebuild.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 3085 bytes
Desc: Check version in archive maps
URL: <>

More information about the Binutils mailing list