Add more tests for PR ld/19539
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / x86-64.exp
index cac481eb06231de1910337101da84c5f04979fdb..49f9fa3c2cb8e601c4cc50ffb2164e66edb73af8 100644 (file)
@@ -245,6 +245,8 @@ run_dump_test "largecomm-1c"
 run_dump_test "largecomm-1d"
 run_dump_test "largecomm-1e"
 run_dump_test "largecomm-1f"
+run_dump_test "pr19539a"
+run_dump_test "pr19539b"
 
 if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} {
     return
@@ -643,18 +645,26 @@ if { [isnative] && [which $CC] != 0 } {
            "pr18900.so" \
        ] \
        [list \
-           "Build pr18900a" \
-           "tmpdir/pr18900.so" \
+           "Build pr18900.o" \
+           "-r -nostdlib" \
            "" \
            { pr18900b.c pr18900c.c } \
+           "" \
+           "pr18900.o" \
+       ] \
+       [list \
+           "Build pr18900a" \
+           "tmpdir/pr18900.o tmpdir/pr18900.so" \
+           "" \
+           { dummy.s } \
            {{readelf {-Wrd} pr18900a.rd}} \
            "pr18900a" \
        ] \
        [list \
            "Build pr18900b" \
-           "tmpdir/pr18900.so" \
+           "-Wl,--as-needed tmpdir/pr18900.o tmpdir/pr18900.so" \
            "" \
-           { pr18900b.c pr18900c.c } \
+           { dummy.s } \
            {{readelf {-Wrd} pr18900b.rd}} \
            "pr18900b" \
        ] \
@@ -746,9 +756,9 @@ if { [isnative] && [which $CC] != 0 } {
        ] \
        [list \
            "Run pr18900" \
-           "tmpdir/pr18900.so" \
+           "tmpdir/pr18900.o tmpdir/pr18900.so" \
            "" \
-           { pr18900b.c pr18900c.c } \
+           { dummy.s } \
            "pr18900" \
            "pr18900.out" \
        ] \
This page took 0.025227 seconds and 4 git commands to generate.