1 if { ![istarget
"sh-*-vxworks"] } {
5 set endians
{ "--big" "-EB" "" "--little" "-EL" "-le" }
7 foreach
{ gas_option ld_option suffix
} $endians
{
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
}}
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
}}
20 {"VxWorks executable test 2 (dynamic)" \
21 "-Tvxworks1.ld -q --force-dynamic $ld_option"
22 "$gas_option" {vxworks2.s}
23 {{readelf
--segments vxworks2.sd
}}
25 {"VxWorks executable test 2 (static)"
26 "-Tvxworks1.ld $ld_option"
27 "$gas_option" {vxworks2.s}
28 {{readelf
--segments vxworks2
-static.sd
}}
30 {"VxWorks shared library test 3" "-shared -Tvxworks1.ld $ld_option"
31 "$gas_option" {vxworks3-lib.s}
32 {{objdump
-dr vxworks3
-lib$suffix.dd
}}
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
}}
40 run_ld_link_tests
[subst $vxworkstests
]
42 run_dump_test
"vxworks1-static"