aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe/pe.exp
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2016-03-18 09:51:47 +0000
committerNick Clifton <nickc@redhat.com>2016-03-18 09:51:47 +0000
commit41f46ed9fea1a066de95b6a85c56393beef0b8b8 (patch)
tree74d49a75ad394fc318a67c240313c73421fe5837 /ld/testsuite/ld-pe/pe.exp
parente101a78be9388651099af079899b8654292d24f6 (diff)
downloadgdb-41f46ed9fea1a066de95b6a85c56393beef0b8b8.zip
gdb-41f46ed9fea1a066de95b6a85c56393beef0b8b8.tar.gz
gdb-41f46ed9fea1a066de95b6a85c56393beef0b8b8.tar.bz2
Fix possible failure in the AVR linker tests.
* ld-avr/gc-section-debugline.d: Relax regex check for CU.
Diffstat (limited to 'ld/testsuite/ld-pe/pe.exp')
-rw-r--r--ld/testsuite/ld-pe/pe.exp14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp
index 622caed..a31f6e7 100644
--- a/ld/testsuite/ld-pe/pe.exp
+++ b/ld/testsuite/ld-pe/pe.exp
@@ -76,6 +76,20 @@ run_dump_test "longsecn-5"
run_dump_test "orphan"
run_dump_test "orphan_nu"
+run_dump_test "pr19803"
+set pr19803_dll {
+ { "PR 19803: not exporting swept symbols"
+ "-shared --out-implib dx.dll --gc-sections"
+ "" "" {pr19803.s}
+ {{objdump "--syms dx.dll" pr19803.e}}
+ "a.exe"}
+}
+# This test is *supposed* to fail. If the symbol defined in pr19803.e is
+# found then it was not stripped from the export dll, despite the fact that
+# it (should have been) garbage collected from the executable.
+setup_xfail *-*-*
+run_ld_link_tests $pr19803_dll
+
if {[istarget x86_64-*-mingw*] } {
run_dump_test "cfi"
} elseif {[istarget i*86-*-cygwin*] || [istarget i*86-*-mingw*] } {