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.
This commit is contained in:
Alan Modra 2017-12-04 08:38:35 +10:30
parent fed44c60b3
commit 97d4213f68
2 changed files with 23 additions and 19 deletions

View 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

View 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"