Modify ppceabi ld tests to run on all powerpc ELF targets
authorAlan Modra <amodra@gmail.com>
Sun, 3 Dec 2017 22:08:35 +0000 (08:38 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 3 Dec 2017 23:53:57 +0000 (10:23 +1030)
* testsuite/ld-powerpc/powerpc.exp (ppceabitests): Add -a32 -mbig
to assembler options, and -melf32ppc to linker options.  Always
run these tests.

ld/ChangeLog
ld/testsuite/ld-powerpc/powerpc.exp

index 0d1d3c7..c970625 100644 (file)
@@ -1,3 +1,9 @@
+2017-12-04  Alan Modra  <amodra@gmail.com>
+
+       * 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  <tobiasu@tmux.org>
 
        * ldwrite.c (build_link_order): Check return value of all
index ef3b718..a01d060 100644 (file)
@@ -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"