aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib/ld-lib.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/lib/ld-lib.exp')
-rw-r--r--ld/testsuite/lib/ld-lib.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 24a4131..19a180b 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -207,6 +207,10 @@ proc default_ld_nm { nm object } {
return 0
}
+ if {[info exists nm_output]} {
+ unset nm_output
+ }
+
if ![info exists NMFLAGS] { set NMFLAGS "" }
verbose -log "$nm $NMFLAGS $object >tmpdir/nm.out"