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.
This commit is contained in:
H.J. Lu
2020-12-28 10:44:28 -08:00
parent adf6c633a3
commit 3e9373fcaf
2 changed files with 15 additions and 1 deletions
+5
View File
@@ -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.
+10 -1
View File
@@ -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
}