From: Corinna Vinschen Date: Wed, 14 Nov 2001 16:37:18 +0000 (+0000) Subject: * gdb.asm/asm-sources.exp: Allow defining linker flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25050984999b3830cd4a2c2f94da9b09b915a164;p=binutils-gdb.git * gdb.asm/asm-sources.exp: Allow defining linker flags. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4c90130867e..e4f1e7942eb 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-11-13 Corinna Vinschen + + * gdb.asm/asm-sources.exp: Allow defining linker flags. + 2001-11-12 Daniel Jacobowitz * lib/mi-support.exp (mi_run_to_helper): Move comments diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 7f73068c9cb..5377e68bb50 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -33,6 +33,7 @@ set bug_id 0 set asm-arch "" set asm-flags "" +set link-flags "" if [istarget "d10v-*-*"] then { set asm-arch d10v @@ -58,7 +59,7 @@ if {[target_assemble ${src2} asmsrc2.o "${asm-flags}"] != ""} then { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [target_link "asmsrc1.o asmsrc2.o" ${binfile} ""] != "" } { +if { [target_link "asmsrc1.o asmsrc2.o" ${binfile} "${link-flags}"] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." }