From de40fd4c582e411be088c0bdf5416e5e92b7e0bd Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 2 Jun 2003 15:51:23 +0000 Subject: [PATCH] * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/dump.exp | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e5f278e92d..b4f4994f2a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-06-02 Richard Henderson + + * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch. + 2003-06-01 Daniel Jacobowitz * gdb.asm/asm-source.exp: Dissassemble from &globalvar instead diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 5885307cea..1120d41321 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -31,8 +31,15 @@ set testfile "dump" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} +set options {debug} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { +if [istarget "alpha*-*-*"] then { + # SREC etc cannot handle 64-bit addresses. Force the test + # program into the low 31 bits of the address space. + lappend options "additional_flags=-Wl,-taso" +} + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ${options}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -- 2.11.0