PATCH COMMITTED: Use new binutils for gold testing, test strip

Ian Lance Taylor iant@google.com
Mon Apr 7 22:19:00 GMT 2008


I discovered that an older version of binutils strip, pre 2.17, failed
to work correctly on x86_64 binaries linked by gold, due to a
disagreement about the expected page size.  That has been fixed for a
while, but I thought it would be a good idea to add a test that strip
works with gold.

I also patched up the testsuite to use the newly built binutils,
rather than whatever is installed on the system.

Ian


2008-04-07  Ian Lance Taylor  <iant@google.com>

	* configure.ac: Don't test for objdump, c++filt, or readelf.
	* testsuite/Makefile.am: Remove READELF and OBJDUMP_AND_CPPFILT
	conditionals.
	(TEST_READELF): New variable.
	(TEST_OBJDUMP, TEST_CXXFILT, TEST_STRIP): New variables.
	(check_PROGRAMS): Add two_file_strip_test.
	(two_file_strip_test): New target.
	(check_PROGRAMS): Add two_file_same_shared_strip_test.
	(two_file_same_shared_strip_test_SOURCES): New variable.
	(two_file_same_shared_strip_test_DEPENDENCIES): New variable.
	(two_file_same_shared_strip_test_LDFLAGS): New variable.
	(two_file_same_shared_strip_test_LDADD): New variable.
	(two_file_shared_strip.so): New target.
	(ver_test_2.syms, ver_test_4.syms): Use TEST_READELF.
	(ver_test_5.syms, ver_test_7.syms): Likewise.
	(ver_matching_test.stdout): Use TEST_OBJDUMP and TEST_CXXFILT.
	(strip_test_3.stdout): Use TEST_OBJDUMP.
	* configure, Makefile.in, testsuite/Makefile.in: Rebuild.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 4682 bytes
Desc: Use new binutils for gold testsing, test strip
URL: <https://sourceware.org/pipermail/binutils/attachments/20080407/7c7ccd27/attachment.bin>


More information about the Binutils mailing list