diff options
author | Alan Modra <amodra@gmail.com> | 2017-12-04 08:38:35 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-12-04 10:23:57 +1030 |
commit | 97d4213f68ce37efe4c957f761e500a13b19f16f (patch) | |
tree | d391ca822b51fd56927973408d5854ecd73b1efb /ld | |
parent | fed44c60b3a3ded5e60982af7412d20603054910 (diff) | |
download | fsf-binutils-gdb-97d4213f68ce37efe4c957f761e500a13b19f16f.zip fsf-binutils-gdb-97d4213f68ce37efe4c957f761e500a13b19f16f.tar.gz fsf-binutils-gdb-97d4213f68ce37efe4c957f761e500a13b19f16f.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 36 |
2 files changed, 23 insertions, 19 deletions
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 <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 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" |