aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-02-12 00:21:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-02-12 00:21:59 +0000
commit9a580d9af6169d6b6e9f90abe70bebb26e912bb3 (patch)
tree020e61b796a3007ea63cc06f1d22548c646a1b57 /binutils/testsuite/config
parent708b82c780e2647c46c63021893cf9339eb33611 (diff)
downloadgdb-9a580d9af6169d6b6e9f90abe70bebb26e912bb3.zip
gdb-9a580d9af6169d6b6e9f90abe70bebb26e912bb3.tar.gz
gdb-9a580d9af6169d6b6e9f90abe70bebb26e912bb3.tar.bz2
2001-02-11 H.J. Lu <hjl@gnu.org>
* config/default.exp: Set up gcc_gas_flag. * binutils-all/objcopy.exp (copy_setup): Process gcc_gas_flag for Linux only. * binutils-all/testprog.c: Include <string.h> and don't use exit ().
Diffstat (limited to 'binutils/testsuite/config')
-rw-r--r--binutils/testsuite/config/default.exp14
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/testsuite/config/default.exp b/binutils/testsuite/config/default.exp
index 2a2802e..6b0039a 100644
--- a/binutils/testsuite/config/default.exp
+++ b/binutils/testsuite/config/default.exp
@@ -70,6 +70,20 @@ if ![info exists READELFFLAGS] then {
if ![file isdirectory tmpdir] {catch "exec mkdir tmpdir" status}
+# Make a symlink from tmpdir/gas/as and tmpdir/gas/ld to the assembler
+# and linker in the build tree, so that we can use a -B option to gcc
+# to force it to use the newly built assembler/linker.
+if {![file isdirectory tmpdir/gas]} then {
+ catch "exec mkdir tmpdir/gas" status
+ if {[file isfile ../gas/as-new]} then {
+ catch "exec ln -s ../../../gas/as-new tmpdir/gas/as" status
+ }
+ if {[file isfile ../ld/ld-new]} then {
+ catch "exec ln -s ../../../ld/ld-new tmpdir/gas/ld" status
+ }
+}
+set gcc_gas_flag "-B[pwd]/tmpdir/gas/"
+
#
# binutils_run
# run a program, returning the output