diff options
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index eea9c7e..9cd0221 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -157,6 +157,15 @@ set build_tests { {"Build libpr11138-2.o" "-r -nostdlib" "" {pr11138-2.c} {} "libpr11138-2.o"} + {"Build pr13250-1.so" + "-shared" "-fPIC" + {pr13250-1.c} {} "libpr13250-1.so"} + {"Build pr13250-2.so with libpr13250-1.so" + "-shared tmpdir/libpr13250-1.so" "-fPIC" + {pr13250-2.c} {} "libpr13250-2.so"} + {"Build libpr13250-3.o" + "-r -nostdlib" "" + {pr13250-3.c} {} "libpr13250-3.o"} } run_cc_link_tests $build_tests @@ -283,6 +292,9 @@ set run_tests { {"Run with libpr11138-1.so pr11138-2.c" "--version-script=pr11138-2.map tmpdir/libpr11138-1.so tmpdir/pr11138-2.o" "" {dummy.c} "pr11138b" "pr11138.out"} + {"Run with pr13250-3.c, libpr13250-1.so and libpr13250-2.so" + "--as-needed tmpdir/pr13250-3.o tmpdir/libpr13250-1.so tmpdir/libpr13250-2.so" "" + {dummy.c} "pr13250" "pass.out"} } # NetBSD ELF systems do not currently support the .*_array sections. |