diff options
Diffstat (limited to 'ld/testsuite/ld-elf/elf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index f126650..d1a70ea 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -116,6 +116,18 @@ foreach t $test_list { run_dump_test [file rootname $t] } +# Check that the --warn-orphan option works correctly. +run_ld_link_tests { + {"Report orphan sections" + "--script orphan.ld --warn-orphan" + "" + "" + {orphan.s} + { { ld "orphan-5.l" } } + "orphan" + } +} + if { [istarget *-*-linux*] || [istarget *-*-nacl*] || [istarget *-*-gnu*] } { |