diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-06-19 14:04:18 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-06-20 16:55:24 +0800 |
commit | b5b05a6e6524778e20fccd6b019e781727659f42 (patch) | |
tree | 341ee99d646d3efef302612b3ef3210be785aca0 /ld/testsuite/ld-loongarch-elf/desc-ie.d | |
parent | b5929e7aa0195a0656a63da95d5eccbb73b5b173 (diff) | |
download | gdb-b5b05a6e6524778e20fccd6b019e781727659f42.zip gdb-b5b05a6e6524778e20fccd6b019e781727659f42.tar.gz gdb-b5b05a6e6524778e20fccd6b019e781727659f42.tar.bz2 |
LoongArch: TLS IE needs only one dynamic reloc
As the comment in the code says, TLS_IE needs only one dynamic reloc.
But commit b67a17aa7c0c ("LoongArch: Fix the issue of excessive
relocation generated by GD and IE") has incorrectly allocated the space
for two dynamic relocs, causing libc.so to contain 8 R_LARCH_NONE.
Adjust tlsdesc-dso.d for the offset changes and add two tests to ensure
there are no R_LARCH_NONE with TLS.
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/desc-ie.d')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/desc-ie.d | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/desc-ie.d b/ld/testsuite/ld-loongarch-elf/desc-ie.d index c833b23..0759404 100644 --- a/ld/testsuite/ld-loongarch-elf/desc-ie.d +++ b/ld/testsuite/ld-loongarch-elf/desc-ie.d @@ -8,7 +8,7 @@ Disassembly of section .text: [0-9a-f]+ <fn1>: - +[0-9a-f]+: 1a000084 pcalau12i \$a0, .* - +[0-9a-f]+: 28cd0084 ld.d \$a0, \$a0, .* - +[0-9a-f]+: 1a000084 pcalau12i \$a0, .* - +[0-9a-f]+: 28cd0084 ld.d \$a0, \$a0, .* + +[0-9a-f]+: [0-9a-f]+ pcalau12i \$a0, .* + +[0-9a-f]+: [0-9a-f]+ ld.d \$a0, \$a0, .* + +[0-9a-f]+: [0-9a-f]+ pcalau12i \$a0, .* + +[0-9a-f]+: [0-9a-f]+ ld.d \$a0, \$a0, .* |