gold patch committed: Output correct version information with -r

Ian Lance Taylor iant@google.com
Tue Jun 28 05:41:00 GMT 2011


When generating a relocatable object file, gold was erroneously dropping
all version information, which for a .o file must be encoded in the
symbol name.  This patch fixes the problem.  Committed to mainline.

Ian


2011-06-27  Ian Lance Taylor  <iant@google.com>

	* symtab.cc (Symbol::versioned_name): New function.
	(Symbol_table::add_to_final_symtab): Use versioned_name when
	appropriate.
	(Symbol_table::sized_write_symbol): Likewise.
	* symtab.h (class Symbol): Declare versioned_name.
	* stringpool.h (class Stringpool_template): Add variant of add
	which takes a std::basic_string.
	* testsuite/Makefile.am (check_PROGRAMS): Add ver_test_12.
	(ver_test_12_SOURCES, ver_test_12_DEPENDENCIES): New variables.
	(ver_test_12_LDFLAGS, ver_test_12_LDADD): New variables.
	(ver_test_12.o): New target.
	* testsuite/Makefile.in: Rebuild.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 4546 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110628/ac8ef39c/attachment.bin>


More information about the Binutils mailing list