]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove srcdir from x86 testcase "source:" lines
authorAlan Modra <amodra@gmail.com>
Fri, 26 Jul 2024 05:40:56 +0000 (15:10 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 26 Jul 2024 05:54:20 +0000 (15:24 +0930)
It's wrong to have ${srcdir} in run_dump_test "source:" lines, as
run_dump_test adds $srcdir/$subdir/ to the line passed to the shell
except when the source path starts with "./".  The tests work
currently because the shell expands ${srcdir} to an empty string.

PR 31728
* testsuite/ld-i386/code16.d: Correct "source:".
* testsuite/ld-x86-64/code16.d: Likewise.
* testsuite/ld-x86-64/rela.d: Likewise.

ld/testsuite/ld-i386/code16.d
ld/testsuite/ld-x86-64/code16.d
ld/testsuite/ld-x86-64/rela.d

index c44fb03b7fb89d66cd061b936f36725e91b63a4b..cca8e8f63c1df61ef4ec6048f30ed661d3cf0efb 100644 (file)
@@ -1,6 +1,6 @@
 #name: i386 R_386_PC16 reloc in 16-bit mode
 #as: --32 -mx86-used-note=no --generate-missing-build-notes=no
-#source: ${srcdir}/../../../gas/testsuite/gas/i386/code16-2.s
+#source: ../../../gas/testsuite/gas/i386/code16-2.s
 #ld: -T code16.t
 #objdump: -dw -Mi8086
 
index 5b83681d73c4ff03715bce9784db0b0a0387eec6..ff21913b566430fb0108f78ff3fb9a1835eceecb 100644 (file)
@@ -1,6 +1,6 @@
 #name: x86-64 R_X86_64_PC16 reloc in 16-bit mode
 #as: --64 -mx86-used-note=no --generate-missing-build-notes=no
-#source: ${srcdir}/../../../gas/testsuite/gas/i386/code16-2.s
+#source: ../../../gas/testsuite/gas/i386/code16-2.s
 #ld: -T code16.t
 #objdump: -dw -Mi8086
 
index 20bb7e3523254c457cd03df4084941c907fd9dd4..94bcc7fa6e49e8e2120eb5229650d7f5010e09ea 100644 (file)
@@ -1,6 +1,6 @@
 #name: x86-64 rela relocs w/ non-zero relocated fields
 #as: --64
-#source: ${srcdir}/../../../gas/testsuite/gas/i386/rela.s
+#source: ../../../gas/testsuite/gas/i386/rela.s
 #ld: -melf_x86_64
 #objdump: -sj .data