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

Ian Lance Taylor
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.


2008-04-07  Ian Lance Taylor  <>

	* Don't test for objdump, c++filt, or readelf.
	* testsuite/ Remove READELF and OBJDUMP_AND_CPPFILT
	(TEST_READELF): New variable.
	(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.
	( 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,, testsuite/ 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: <>

More information about the Binutils mailing list