From b7b0b729640771030ea4708abd9f686f820255d8 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 11 Nov 2002 10:16:57 +0000 Subject: * ld-elf/sec64k.exp: New test. * lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/" to a source file starting with "/". --- ld/testsuite/lib/ld-lib.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ld/testsuite/lib') diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index c70cf5b..4217636 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -678,7 +678,11 @@ proc run_dump_test { name } { } else { set sourcefiles {} foreach sf $opts(source) { - lappend sourcefiles "$srcdir/$subdir/$sf" + if { [string match "/*" $sf] } { + lappend sourcefiles "$sf" + } { + lappend sourcefiles "$srcdir/$subdir/$sf" + } # Must have asflags indexed on source name. set asflags($srcdir/$subdir/$sf) $asflags($sf) } -- cgit v1.1