diff options
Diffstat (limited to 'ld/testsuite/config/default.exp')
-rw-r--r-- | ld/testsuite/config/default.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 355d98f..6aba75f 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -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 { |