diff options
Diffstat (limited to 'ld/testsuite/ld-powerpc')
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 16 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks1-static.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks2-static.sd | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks2.s | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks2.sd | 13 |
5 files changed, 45 insertions, 2 deletions
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index db7fe59..681bb6e 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -31,12 +31,24 @@ if {[istarget "*-*-vxworks"]} { {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd} {readelf --symbols vxworks1-lib.nd}} "libvxworks1.so"} - {"VxWorks dynamic executable test 1" \ - "tmpdir/libvxworks1.so -Tvxworks1.ld -q" "-mregnames" {vxworks1.s} + {"VxWorks executable test 1 (dynamic)" \ + "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic" + "-mregnames" {vxworks1.s} {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}} "vxworks1"} + {"VxWorks executable test 2 (dynamic)" \ + "-Tvxworks1.ld -q --force-dynamic" + "-mregnames" {vxworks2.s} + {{readelf --segments vxworks2.sd}} + "vxworks2"} + {"VxWorks executable test 2 (static)" + "-Tvxworks1.ld" + "-mregnames" {vxworks2.s} + {{readelf --segments vxworks2-static.sd}} + "vxworks2"} } run_ld_link_tests $ppcvxtests + run_dump_test "vxworks1-static" return } diff --git a/ld/testsuite/ld-powerpc/vxworks1-static.d b/ld/testsuite/ld-powerpc/vxworks1-static.d new file mode 100644 index 0000000..4c2d1fd --- /dev/null +++ b/ld/testsuite/ld-powerpc/vxworks1-static.d @@ -0,0 +1,4 @@ +#name: VxWorks executable test 1 (static) +#source: vxworks1.s -mregnames +#ld: tmpdir/libvxworks1.so -Tvxworks1.ld +#error: Dynamic sections created in non-dynamic link diff --git a/ld/testsuite/ld-powerpc/vxworks2-static.sd b/ld/testsuite/ld-powerpc/vxworks2-static.sd new file mode 100644 index 0000000..55fc529 --- /dev/null +++ b/ld/testsuite/ld-powerpc/vxworks2-static.sd @@ -0,0 +1,9 @@ +#... +Elf file type is EXEC \(Executable file\) +Entry point 0x80000 +#... +Program Headers: + Type .* + LOAD .* 0x00080000 0x00080000 .* R E 0x10000 + +#... diff --git a/ld/testsuite/ld-powerpc/vxworks2.s b/ld/testsuite/ld-powerpc/vxworks2.s new file mode 100644 index 0000000..5e8d73a --- /dev/null +++ b/ld/testsuite/ld-powerpc/vxworks2.s @@ -0,0 +1,5 @@ + .globl _start + .type _start,@function +_start: + blr + .end _start diff --git a/ld/testsuite/ld-powerpc/vxworks2.sd b/ld/testsuite/ld-powerpc/vxworks2.sd new file mode 100644 index 0000000..0876568 --- /dev/null +++ b/ld/testsuite/ld-powerpc/vxworks2.sd @@ -0,0 +1,13 @@ +#... +Elf file type is EXEC \(Executable file\) +Entry point 0x80400 +#... +Program Headers: + Type .* + PHDR .* +#... + LOAD .* 0x00080000 0x00080000 .* R E 0x10000 + LOAD .* 0x00090000 0x00090000 .* RW 0x10000 + DYNAMIC .* + +#... |