diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-01-20 00:38:24 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-01-22 17:14:36 +0800 |
commit | 7b0b94b7b9a97c2af8c9557b2e5a3fc7ac3e6ee0 (patch) | |
tree | d15da6c3fabc40819ee9a0fd74d16de1dbdfba30 /ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d | |
parent | d5e68872d0fd32a5ee28b292d97129baca6e66f7 (diff) | |
download | gdb-7b0b94b7b9a97c2af8c9557b2e5a3fc7ac3e6ee0.zip gdb-7b0b94b7b9a97c2af8c9557b2e5a3fc7ac3e6ee0.tar.gz gdb-7b0b94b7b9a97c2af8c9557b2e5a3fc7ac3e6ee0.tar.bz2 |
LoongArch: Fix some test failures about TLS desc and TLS relaxation
There are two issues causing 11 test failures:
1. The TLS desc tests are matching the entire disassemble of a linked
executable. But if ld is configured --enable-default-hash-style=gnu
(note that most modern distros use this option), the layout of the
linked executables will be different and the immediate operands in
the linked executables will also be different. So we add
"--hash-style=both" for these tests to cancel the effect of
--enable-default-hash-style=gnu, like [x86_64 mark-plt tests].
2. By default objdump disassemble uses [pseudo-instructions] so "addi.w"
is outputed as "li.w", causing mismatches in TLS relaxation tests.
We can turn off the pseudo-instruction usage in objdump using "-M
no-aliases" to fix them.
[x86_64 mark-plt tests]: 16666ccc91295d1568c5c2cb0e7600694840dfd9
[pseudo-instructions]: 17f9439038257b1de0c130a416a9a7645c653cb0
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d b/ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d index 667ad74..453902d 100644 --- a/ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d +++ b/ld/testsuite/ld-loongarch-elf/tlsdesc-dso.d @@ -1,5 +1,5 @@ #as: -#ld: -shared -z norelro +#ld: -shared -z norelro --hash-style=both #objdump: -dr #skip: loongarch32-*-* |