more testsuite backports for 2.21 branch

Alan Modra amodra@gmail.com
Thu Feb 10 03:58:00 GMT 2011


I took the liberty of applying the following to the branch.  As with
my previous backport, the idea was to fix a number of bugs
(H.J. Lu's ld-selective/selective.exp, ld-elfvers/vers.exp patches,
Mike Frysinger's ld-elfvers patch, Andreas Schwab's ld-gc patch), with
the rest being infrastructure and other relatively simple patches that
make applying mainline patches to the branch much easier.  I haven't
tried to backport any machine specific patches, but it seems a couple
of hppa64 testsuite patches sneaked in somehow.

binutils/testsuite/
	Apply from mainline
	2010-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
	* lib/binutils-common.exp (regexp_diff): New procedure.
	* lib/utils-lib.exp (regexp_diff): Delete.

	2010-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
	* lib/binutils-common.exp: New file.
	* lib/utils-lib.exp (load_common_lib): New function.  Load
	binutils-common.exp.
	(is_elf_format): Delete.

	2010-11-08  Thomas Schwinge  <thomas@schwinge.name>
	* lib/utils-lib.exp (is_elf_format): Consider for *-*-gnu*, too.
	* binutils-all/elfedit-2.d (target): Likewise.
	* binutils-all/elfedit-3.d (target): Likewise.
	* binutils-all/i386/i386.exp: Likewise.
	* binutils-all/objcopy.exp: Likewise.
	* binutils-all/strip-3.d (target): Likewise.

gas/testsuite/
	Apply from mainline
	2010-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
	* lib/gas-defs.exp (regexp_diff): Delete.
	(run_dump_test): Remove final "" argument in call to regexp_diff.
	(run_list_test): Likewise.
	(run_list_test_stdin): Likewise.
	* gas/all/gas.exp (test_cond): Likewise.
	* gas/elf/elf.exp (run_elf_list_test): Likewise.
	* gas/m68k/all.exp: Likewise.
	* gas/mep/complex-relocs.exp (regexp_test): Likewise.
	* gas/mt/relocs.exp (regexp_test): Likewise.
	* gas/symver/symver.exp (run_error_test): Likewise.

	2010-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
	* lib/gas-defs.exp (load_common_lib): New function.  Load
	binutils-common.exp.
	(is_elf_format, is_aout_format, is_pecoff_format): Delete.

	2010-11-08  Thomas Schwinge  <thomas@schwinge.name>
	* lib/gas-defs.exp (is_elf_format): Consider for *-*-gnu*, too.
	* gas/elf/elf.exp: Likewise.
	* gas/symver/symver.exp: Likewise.

ld/
	Apply from mainline
	2010-11-08  Thomas Schwinge  <thomas@schwinge.name>
	* configure.host: Add stanza for *-*-gnu*.

ld/testsuite/
	Apply from mainline
	2011-01-08  Nick Clifton  <nickc@redhat.com>
	PR ld/13258
	PR ld/13259
	* ld-elf/textaddr2.d: Fix regexp to work with hppa64 targets.
	* ld-elf/textaddr6.d: Fix regexp to work with hppa64 targets.

	2010-12-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
	PR ld/12360
	* ld-elfcomm/elfcomm.exp (test1w1): Use same check as MIPS on
	hppa*64*-*-*.

	2010-12-20  Alan Modra  <amodra@gmail.com>
	* ld-bootstrap/bootstrap.exp: Fix misplaced comment.

	2010-12-04  H.J. Lu  <hongjiu.lu@intel.com>
	* ld-selective/selective.exp: Don't pass -fvtable-gc to GCC
	3.4.0 or above.

	2010-12-04  H.J. Lu  <hongjiu.lu@intel.com>
	* ld-elfvers/vers.exp: Replace -export-dynamic with
	-Wl,-export-dynamic.

	2010-12-11  Alan Modra  <amodra@gmail.com>
	* ld-elfvers/vers25a.dsym: Really include _? in match.

	2010-12-10  Mike Frysinger  <vapier@gentoo.org>
	* ld-elfvers/vers.h: New file.
	* ld-elfvers/vers1.c: Include vers.h.  Change asm(.symver) to SYMVER().
	* ld-elfvers/vers4.c, ld-elfvers/vers5.c, ld-elfvers/vers6.c,
	ld-elfvers/vers7a.c, ld-elfvers/vers9.c, ld-elfvers/vers15.c,
	ld-elfvers/vers18.c, ld-elfvers/vers21.c, ld-elfvers/vers22a.c,
	ld-elfvers/vers23a.c, ld-elfvers/vers24a.c, ld-elfvers/vers24c.c,
	ld-elfvers/vers27d1.c: Likewise.
	* ld-elf/pr9676.rd: Include _? in symbol match
	* ld-elf/pr9676.rd, ld-elf/pr9679.rd, ld-elfvers/vers1.dsym,
	ld-elfvers/vers1.sym, ld-elfvers/vers15.dsym, ld-elfvers/vers15.sym,
	ld-elfvers/vers16.dsym, ld-elfvers/vers16a.dsym, ld-elfvers/vers17.dsym,
	ld-elfvers/vers18.dsym, ld-elfvers/vers18.sym, ld-elfvers/vers19.dsym,
	ld-elfvers/vers2.dsym, ld-elfvers/vers20.dsym, ld-elfvers/vers21.dsym,
	ld-elfvers/vers21.sym, ld-elfvers/vers22.dsym, ld-elfvers/vers22a.dsym,
	ld-elfvers/vers22a.sym, ld-elfvers/vers22b.dsym, ld-elfvers/vers23.dsym,
	ld-elfvers/vers23a.dsym, ld-elfvers/vers23a.sym,
	ld-elfvers/vers23b.dsym, ld-elfvers/vers23d.dsym,
	ld-elfvers/vers24.rd, ld-elfvers/vers25a.dsym,
	ld-elfvers/vers26a.dsym, ld-elfvers/vers27a.dsym,
	ld-elfvers/vers27d.dsym, ld-elfvers/vers27d.sym,
	ld-elfvers/vers27d4.dsym, ld-elfvers/vers28b.dsym,
	ld-elfvers/vers28c.dsym, ld-elfvers/vers29.dsym, ld-elfvers/vers3.dsym,
	ld-elfvers/vers30.dsym, ld-elfvers/vers31.dsym, ld-elfvers/vers32a.dsym,
	ld-elfvers/vers32b.dsym, ld-elfvers/vers4.sym, ld-elfvers/vers4a.dsym,
	ld-elfvers/vers4a.sym, ld-elfvers/vers6.dsym, ld-elfvers/vers6.sym,
	ld-elfvers/vers7a.dsym, ld-elfvers/vers7a.sym, ld-elfvers/vers9.dsym,
	ld-elfvers/vers9.sym: Likewise.

	2010-11-30  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
	* ld-scripts/script.exp: Remove full path from REGION_ALIAS test
	names.

	2010-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
	* lib/ld-lib.exp (regexp_diff, simple_diff): Delete.

	2010-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
	* lib/ld-lib.exp (load_common_lib): New function.  Load
	binutils-common.exp.
	(is_elf_format, is_elf64, is_aout_format, is_pecoff_format): Delete.

	2010-11-18  Alan Modra  <amodra@gmail.com>
	* ld-elf/binutils.exp: Correct x86 gnu target match.
	* ld-i386/i386.exp: Likewise.
	* ld-ifunc/binutils.exp: Likewise.
	* ld-ifunc/ifunc.exp: Likewise.
	* ld-discard/discard.exp: Remove unnecessary line continuations.
	* ld-elfvers/vers.exp: Likewise.  Simplify linuxaout and linuxoldld
	test.
	* ld-elfweak/elfweak.exp: Likewise.

	2010-11-17  Andreas Schwab  <schwab@linux-m68k.org>
	* ld-gc/pr11218-2.c: Declare
	unresolved_detected_at_runtime_not_at_linktime.

	2010-11-08  Thomas Schwinge  <thomas@schwinge.name>
	* lib/ld-lib.exp (is_elf_format): Consider for *-*-gnu*, too.
	* ld-discard/discard.exp: Likewise.
	* ld-elf/binutils.exp: Likewise.
	* ld-elf/commonpage1.d (target): Likewise.
	* ld-elf/compress1c.d (target): Likewise.
	* ld-elf/discard1.d (target): Likewise.
	* ld-elf/discard2.d (target): Likewise.
	* ld-elf/discard3.d (target): Likewise.
	* ld-elf/dynsym1.d (target): Likewise.
	* ld-elf/eh6.d (target): Likewise.
	* ld-elf/elf.exp: Likewise.
	(array_tests): Move -static tests to...
	(array_tests_static): ... here, and handle it accordingly.
	* ld-elf/hash.d (target): Likewise.
	* ld-elf/header.d (target): Likewise.
	* ld-elf/loadaddr1.d (target): Likewise.
	* ld-elf/loadaddr2.d (target): Likewise.
	* ld-elf/loadaddr3a.d (target): Likewise.
	* ld-elf/loadaddr3b.d (target): Likewise.
	* ld-elf/local1.d (target): Likewise.
	* ld-elf/maxpage1.d (target): Likewise.
	* ld-elf/maxpage2.d (target): Likewise.
	* ld-elf/maxpage3a.d (target): Likewise.
	* ld-elf/multibss1.d (target): Likewise.
	* ld-elf/noload-2.d (target): Likewise.
	* ld-elf/seg.d (target): Likewise.
	* ld-elf/textaddr1.d (target): Likewise.
	* ld-elf/textaddr2.d (target): Likewise.
	* ld-elf/textaddr3.d (target): Likewise.
	* ld-elf/textaddr4.d (target): Likewise.
	* ld-elf/textaddr5.d (target): Likewise.
	* ld-elf/textaddr6.d (target): Likewise.
	* ld-elf/textaddr7.d (target): Likewise.
	* ld-elf/tls_common.exp: Likewise.
	* ld-elf/unknown2.d (target): Likewise.
	* ld-elfvers/vers.exp: Likewise.
	* ld-elfvsb/elfvsb.exp: Likewise.
	* ld-elfweak/elfweak.exp: Likewise.
	(setup_xfail_gnu_hurd): New function.  Use it where appropriate.
	* ld-gc/abi-note.d (target): Likewise.
	* ld-gc/gc.exp: Likewise.
	* ld-gc/pr11218.d (target): Likewise.
	* ld-gc/start.d (target): Likewise.
	* ld-i386/i386.exp: Likewise.
	* ld-ifunc/binutils.exp: Likewise.
	* ld-ifunc/ifunc.exp: Likewise.
	* ld-linkonce/linkonce.exp: Likewise.
	* ld-linkonce/zeroehl32.d (target): Likewise.
	* ld-pie/pie.exp: Likewise.
	* ld-scripts/phdrs2.exp: Likewise.
	* ld-scripts/rgn-at5.d (target): Likewise.
	* ld-shared/shared.exp: Likewise.
	* ld-undefined/entry-3.d (target): Likewise.
	* ld-undefined/entry-4.d (target): Likewise.
	* ld-undefined/weak-undef.exp: Likewise.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list