]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/testsuite: replace aarch64 uses of load_lib
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2024 10:37:05 +0000 (11:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2024 10:37:05 +0000 (11:37 +0100)
Using $srcdir/$subdir directly doesn't work, at least not with expect
5.45, dejagnu 1.6, and an out-of-tree build (I assume it's the latter
aspect which is crucial here). Make use of load_file instead.

ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/protections/aarch64-protections.exp

index e65d4ce5a3d19d674ebb75bd0c5f06fda54c7e25..54539b3d2cd8c323b2938b7ed351ba9c9964e54a 100644 (file)
@@ -23,7 +23,7 @@ if { ![is_elf_format] || ![istarget "aarch64*-*-*"] } {
     return
 }
 
-load_lib $srcdir/$subdir/lib/aarch64-elf-lib.exp
+load_file $srcdir/$subdir/lib/aarch64-elf-lib.exp
 
 # List contains test-items with 3 items followed by 2 lists:
 # 0:name 1:ld early options 2:ld late options 3:assembler options
index 471afa13a63f5d881b7390cf1c32feb5e7df3a4d..68b99959285c931aa4b1e01ca8934c58b321350e 100644 (file)
@@ -23,7 +23,7 @@ if { ![is_elf_format] || ![istarget "aarch64*-*-*"] } {
   return
 }
 
-load_lib $srcdir/$subdir/../lib/aarch64-elf-lib.exp
+load_file $srcdir/$subdir/../lib/aarch64-elf-lib.exp
 
 set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
 set test_lp64_list [lsort [glob -nocomplain $srcdir/$subdir/bti-far-*.d]]