mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
LD_CLASS: Check .libs/ld-new for linker first
When --enable-shared is used, ./ld-new may be a shell script and the real linker is .libs/ld-new. We should check .libs/ld-new first. * testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new for linker first.
This commit is contained in:
parent
e8c6b620f7
commit
7ed1dab994
@ -1,3 +1,8 @@
|
||||
2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new
|
||||
for linker first.
|
||||
|
||||
2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* testsuite/config/default.exp (LD_CLASS): New. Set to "64bit"
|
||||
|
@ -253,7 +253,8 @@ if ![info exists LDFLAGS] then {
|
||||
|
||||
# Set LD_CLASS to "64bit" for 64-bit LD.
|
||||
if { ![info exists LD_CLASS] } then {
|
||||
set readelf_output [run_host_cmd "$READELF" "-h $LD"]
|
||||
set REAL_LD [findfile $base_dir/.libs/ld-new .libs/ld-new $LD [transform ld]]
|
||||
set readelf_output [run_host_cmd "$READELF" "-h $REAL_LD"]
|
||||
if { [regexp {[ \t]+Class:[ \t]+ELF64} $readelf_output] } then {
|
||||
set LD_CLASS "64bit"
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user