mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
As the comment in the code says, TLS_IE needs only one dynamic reloc.
But commit b67a17aa7c
("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>
15 lines
353 B
Makefile
15 lines
353 B
Makefile
#as:
|
|
#ld: -shared -z norelro --hash-style=both
|
|
#objdump: -dr
|
|
#skip: loongarch32-*-*
|
|
|
|
.*: file format .*
|
|
|
|
Disassembly of section .text:
|
|
|
|
[0-9a-f]+ <fn1>:
|
|
+[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, .*
|