diff options
author | Alan Modra <amodra@gmail.com> | 2024-07-26 15:10:56 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-07-26 15:24:20 +0930 |
commit | b47de6c86f9836cef0caed02b97d81d3f2560ebf (patch) | |
tree | 6f0b0024035bf057ea7ac54bd8f3d7637ebf42b7 | |
parent | e26ff6c44e7546b9f761e00bb7cf76a3fa8bfc5d (diff) | |
download | gdb-b47de6c86f9836cef0caed02b97d81d3f2560ebf.zip gdb-b47de6c86f9836cef0caed02b97d81d3f2560ebf.tar.gz gdb-b47de6c86f9836cef0caed02b97d81d3f2560ebf.tar.bz2 |
Remove srcdir from x86 testcase "source:" lines
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.
-rw-r--r-- | ld/testsuite/ld-i386/code16.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/code16.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/rela.d | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-i386/code16.d b/ld/testsuite/ld-i386/code16.d index c44fb03..cca8e8f 100644 --- a/ld/testsuite/ld-i386/code16.d +++ b/ld/testsuite/ld-i386/code16.d @@ -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 diff --git a/ld/testsuite/ld-x86-64/code16.d b/ld/testsuite/ld-x86-64/code16.d index 5b83681..ff21913 100644 --- a/ld/testsuite/ld-x86-64/code16.d +++ b/ld/testsuite/ld-x86-64/code16.d @@ -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 diff --git a/ld/testsuite/ld-x86-64/rela.d b/ld/testsuite/ld-x86-64/rela.d index 20bb7e3..94bcc7f 100644 --- a/ld/testsuite/ld-x86-64/rela.d +++ b/ld/testsuite/ld-x86-64/rela.d @@ -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 |