aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-12-28 10:44:28 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-12-28 10:44:28 -0800
commit3e9373fcaf5184dcf690ff98751f63cca79eaa02 (patch)
tree9e6eb185c7b493a6d48444a90681657868b73092
parentadf6c633a38c998acf4ac8a094ad991bc9e2e6c2 (diff)
downloadfsf-binutils-gdb-3e9373fcaf5184dcf690ff98751f63cca79eaa02.zip
fsf-binutils-gdb-3e9373fcaf5184dcf690ff98751f63cca79eaa02.tar.gz
fsf-binutils-gdb-3e9373fcaf5184dcf690ff98751f63cca79eaa02.tar.bz2
binutils: Use the newly built assembler and linker
Use the newly built assembler and linker in test_gnu_debuglink by passing $gcc_gas_flag to target_compile. * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Pass $gcc_gas_flag to target_compile.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/testsuite/binutils-all/compress.exp11
2 files changed, 15 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 3626fd8..bd087e5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Pass
+ $gcc_gas_flag to target_compile.
+
2020-12-24 Alan Modra <amodra@gmail.com>
* readelf.c (INT64_MIN): Define if not already defined.
diff --git a/binutils/testsuite/binutils-all/compress.exp b/binutils/testsuite/binutils-all/compress.exp
index 831192c..a1dd8d3 100644
--- a/binutils/testsuite/binutils-all/compress.exp
+++ b/binutils/testsuite/binutils-all/compress.exp
@@ -680,10 +680,19 @@ proc test_gnu_debuglink {} {
global STRIP
global OBJCOPY
global OBJDUMP
+ global gcc_gas_flag
set test "gnu-debuglink"
- if { [target_compile $srcdir/$subdir/testprog.c tmpdir/testprog executable debug] != "" } {
+ # Use the newly built assembler and linker.
+ set flags debug
+ if { [istarget *-*-linux*]
+ || [istarget *-*-gnu*] } {
+ foreach i $gcc_gas_flag {
+ set flags "additional_flags=$i $flags"
+ }
+ }
+ if { [target_compile $srcdir/$subdir/testprog.c tmpdir/testprog executable $flags] != "" } {
unsupported "$test (build)"
return
}