Fix ld action in run_dump_test
[deliverable/binutils-gdb.git] / gas / testsuite / config / default.exp
index b51719395a35283847260ee086d7aa383ed40bad..b76c5baa4401461d60499011eb2149a53ec8d119 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+# Copyright (C) 2012-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,6 +26,14 @@ if ![info exists ASFLAGS] then {
     set ASFLAGS ""
 }
 
+if ![info exists LD] then {
+    set LD [findfile $base_dir/../../ld/ld-new $base_dir/../../ld/ld-new [transform ld]]
+}
+if ![info exists LDFLAGS] then {
+    set LDFLAGS ""
+}
+set ld_elf_shared_opt "-z norelro"
+
 if ![info exists OBJDUMP] then {
     set OBJDUMP [findfile $base_dir/../../binutils/objdump \
                          $base_dir/../../binutils/objdump \
@@ -70,4 +78,6 @@ if ![info exists ADDR2LINEFLAGS] then {
     set ADDR2LINEFLAGS {}
 }
 
+if ![file isdirectory tmpdir] {catch "exec mkdir tmpdir" status}
+
 gas_init
This page took 0.023229 seconds and 4 git commands to generate.