From 97d4213f68ce37efe4c957f761e500a13b19f16f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 4 Dec 2017 08:38:35 +1030 Subject: Modify ppceabi ld tests to run on all powerpc ELF targets * testsuite/ld-powerpc/powerpc.exp (ppceabitests): Add -a32 -mbig to assembler options, and -melf32ppc to linker options. Always run these tests. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-powerpc/powerpc.exp | 36 +++++++++++++++++------------------- 2 files changed, 23 insertions(+), 19 deletions(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index 0d1d3c7..c970625 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-12-04 Alan Modra + + * testsuite/ld-powerpc/powerpc.exp (ppceabitests): Add -a32 -mbig + to assembler options, and -melf32ppc to linker options. Always + run these tests. + 2017-12-01 Tobias Ulmer * ldwrite.c (build_link_order): Check return value of all diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index ef3b718..a01d060 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -257,29 +257,29 @@ set ppc64elftests { } set ppceabitests { - {"VLE multiple segments 1" "-T vle-multiseg-1.ld" "" - "-mregnames -mvle" {vle-multiseg.s} + {"VLE multiple segments 1" "-melf32ppc -T vle-multiseg-1.ld" "" + "-a32 -mbig -mregnames -mvle" {vle-multiseg.s} {{readelf "-l" vle-multiseg-1.d}} "vle-multiseg-1"} - {"VLE multiple segments 2" "-T vle-multiseg-2.ld" "" - "-mregnames -mvle" {vle-multiseg.s} + {"VLE multiple segments 2" "-melf32ppc -T vle-multiseg-2.ld" "" + "-a32 -mbig -mregnames -mvle" {vle-multiseg.s} {{readelf "-l" vle-multiseg-2.d}} "vle-multiseg-2"} - {"VLE multiple segments 3" "-T vle-multiseg-3.ld" "" - "-mregnames -mvle" {vle-multiseg.s} + {"VLE multiple segments 3" "-melf32ppc -T vle-multiseg-3.ld" "" + "-a32 -mbig -mregnames -mvle" {vle-multiseg.s} {{readelf "-l" vle-multiseg-3.d}} "vle-multiseg-3"} - {"VLE multiple segments 4" "-T vle-multiseg-4.ld" "" - "-mregnames -mvle" {vle-multiseg.s} + {"VLE multiple segments 4" "-melf32ppc -T vle-multiseg-4.ld" "" + "-a32 -mbig -mregnames -mvle" {vle-multiseg.s} {{readelf "-l" vle-multiseg-4.d}} "vle-multiseg-4"} - {"VLE multiple segments 5" "-T vle-multiseg-5.ld" "" - "-mregnames -mvle" {vle-multiseg.s} + {"VLE multiple segments 5" "-melf32ppc -T vle-multiseg-5.ld" "" + "-a32 -mbig -mregnames -mvle" {vle-multiseg.s} {{readelf "-l" vle-multiseg-5.d}} "vle-multiseg-5"} - {"VLE relocations 1" "-T vle.ld" "" - "-mvle" {vle-reloc-1.s vle-reloc-def-1.s} + {"VLE relocations 1" "-melf32ppc -T vle.ld" "" + "-a32 -mbig -mvle" {vle-reloc-1.s vle-reloc-def-1.s} {{objdump "-Mvle -d" vle-reloc-1.d}} "vle-reloc-1"} - {"VLE relocations 2" "-T vle.ld" "" - "-mvle" {vle-reloc-2.s vle-reloc-def-2.s} + {"VLE relocations 2" "-melf32ppc -T vle.ld" "" + "-a32 -mbig -mvle" {vle-reloc-2.s vle-reloc-def-2.s} {{objdump "-Mvle -d" vle-reloc-2.d}} "vle-reloc-2"} - {"VLE relocations 3" "-T vle.ld" "" - "-mvle" {vle-reloc-3.s vle-reloc-def-3.s} + {"VLE relocations 3" "-melf32ppc -T vle.ld" "" + "-a32 -mbig -mvle" {vle-reloc-3.s vle-reloc-def-3.s} {{objdump "-Mvle -d" vle-reloc-3.d}} "vle-reloc-3"} } @@ -332,9 +332,7 @@ if [ supports_ppc64 ] then { run_dump_test "tlsld32" -if { [istarget "powerpc*-eabi*"] } { - run_ld_link_tests $ppceabitests -} +run_ld_link_tests $ppceabitests run_dump_test "plt1" run_dump_test "sdabase" -- cgit v1.1