diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-plugin/lto-3r.d | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/lto-5r.d | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/lto.exp | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/lto-3r.d b/ld/testsuite/ld-plugin/lto-3r.d new file mode 100644 index 0000000..8ce4482 --- /dev/null +++ b/ld/testsuite/ld-plugin/lto-3r.d @@ -0,0 +1,7 @@ +#ld: -r tmpdir/lto-3b.o +#source: dummy.s +#nm: -p + +#... +[0-9a-f]+ T _?foo +#pass diff --git a/ld/testsuite/ld-plugin/lto-5r.d b/ld/testsuite/ld-plugin/lto-5r.d new file mode 100644 index 0000000..57d4178 --- /dev/null +++ b/ld/testsuite/ld-plugin/lto-5r.d @@ -0,0 +1,7 @@ +#ld: -r tmpdir/lto-5a.o tmpdir/lto-5b.o +#source: dummy.s +#nm: -p + +#... +[0-9a-f]+ T _?foo +#pass diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index b80de49..e913c6f 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -630,6 +630,12 @@ if { [at_least_gcc_version 4 7] } { } } +# Run "ld -r" to generate inputs for complex LTO tests. +run_dump_test "lto-3r" +remote_exec host "mv" "tmpdir/dump tmpdir/lto-3.o" +run_dump_test "lto-5r" +remote_exec host "mv" "tmpdir/dump tmpdir/lto-5.o" + run_cc_link_tests $lto_link_symbol_tests run_ld_link_tests [list \ |