* elf.c (bfd_section_from_shdr): Remove extraneous breaks.
[binutils.git] / ld / testsuite / ld-sh / sh-vxworks.exp
blob8435f7e127871c198d4b43b797da80dbfcea196b
1 if { ![istarget "sh-*-vxworks"] } {
2 return
5 set endians { "--big" "-EB" "" "--little" "-EL" "-le" }
7 foreach { gas_option ld_option suffix } $endians {
8 set vxworkstests {
9 {"VxWorks shared library test 1" "-shared -Tvxworks1.ld $ld_option"
10 "$gas_option" {vxworks1-lib.s}
11 {{readelf --relocs vxworks1-lib.rd}
12 {objdump -dr vxworks1-lib$suffix.dd}
13 {readelf --symbols vxworks1-lib.nd}}
14 "libvxworks1.so"}
15 {"VxWorks executable test 1 (dynamic)" \
16 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic $ld_option"
17 "$gas_option" {vxworks1.s}
18 {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1$suffix.dd}}
19 "vxworks1"}
20 {"VxWorks executable test 2 (dynamic)" \
21 "-Tvxworks1.ld -q --force-dynamic $ld_option"
22 "$gas_option" {vxworks2.s}
23 {{readelf --segments vxworks2.sd}}
24 "vxworks2"}
25 {"VxWorks executable test 2 (static)"
26 "-Tvxworks1.ld $ld_option"
27 "$gas_option" {vxworks2.s}
28 {{readelf --segments vxworks2-static.sd}}
29 "vxworks2"}
30 {"VxWorks shared library test 3" "-shared -Tvxworks1.ld $ld_option"
31 "$gas_option" {vxworks3-lib.s}
32 {{objdump -dr vxworks3-lib$suffix.dd}}
33 "libvxworks3.so"}
34 {"VxWorks executable test 3 (dynamic)" \
35 "tmpdir/libvxworks3.so -Tvxworks1.ld -q --force-dynamic $ld_option"
36 "$gas_option" {vxworks3.s}
37 {{objdump -d vxworks3$suffix.dd}}
38 "vxworks3"}
40 run_ld_link_tests [subst $vxworkstests]
42 run_dump_test "vxworks1-static"