binutils-gdb/ld/testsuite/ld-loongarch-elf
Xi Ruoyao b5b05a6e65 LoongArch: TLS IE needs only one dynamic reloc
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>
2024-06-20 16:55:24 +08:00
..
64_pcrel.d
64_pcrel.s
abi1_max_imm.dd LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
abi1_max_imm.s LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
abi1_sops.s LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
abi2_max_imm.s LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
abi2_overflows.s LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
anno-sym.d
anno-sym.l
anno-sym.s
attr-ifunc-4.c
attr-ifunc-4.out
cmodel-libjirl.dd
cmodel.exp
data-got.d LoongArch: ld: Move .got .got.plt before .data and protect .got with relro 2024-04-09 14:31:04 +08:00
data-got.s LoongArch: ld: Move .got .got.plt before .data and protect .got with relro 2024-04-09 14:31:04 +08:00
data-plt.s
desc-ie-reloc.d LoongArch: TLS IE needs only one dynamic reloc 2024-06-20 16:55:24 +08:00
desc-ie.d LoongArch: TLS IE needs only one dynamic reloc 2024-06-20 16:55:24 +08:00
desc-ie.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
desc-le-norelax.d LoongArch: Fix gas and ld test cases 2024-03-12 17:37:12 +08:00
desc-le-norelax.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
desc-le-relax.d LoongArch: Fix gas and ld test cases 2024-03-12 17:37:12 +08:00
desc-le-relax.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
desc-norelax.d
desc-norelax.s
desc-relax.d
desc-relax.s
disas-jirl-32.d
disas-jirl-32.s
disas-jirl.d
disas-jirl.s
ie-le-norelax.d LoongArch: Fix gas and ld test cases 2024-03-12 17:37:12 +08:00
ie-le-norelax.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
ie-le-relax.d LoongArch: Fix gas and ld test cases 2024-03-12 17:37:12 +08:00
ie-le-relax.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
ifunc.exp
jmp_op.d
jmp_op.s
ld-loongarch-elf.exp LoongArch: TLS IE needs only one dynamic reloc 2024-06-20 16:55:24 +08:00
libjirl.s
libnopic-global.s
local-ifunc-reloc.d
local-ifunc-reloc.s
macro_op_32.d LoongArch: Fix gas and ld test cases 2024-03-12 17:37:12 +08:00
macro_op_32.s
macro_op.d LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
macro_op.s
max_imm_b16.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
max_imm_b21.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
max_imm_b26.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
max_imm_pcrel20.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
medium-call.s
nopic-global-so.rd
nopic-global-so.sd
nopic-global.out
nopic-global.s
nopic-global.sd
nopic-global.xd
nopic-local.out
nopic-local.rd
nopic-local.s
nopic-local.sd
nopic-local.xd
nopic-weak-global-so.rd
nopic-weak-global-so.sd
nopic-weak-global.out
nopic-weak-global.s
nopic-weak-global.sd
nopic-weak-global.xd
nopic-weak-local.out
nopic-weak-local.rd
nopic-weak-local.s
nopic-weak-local.sd
nopic-weak-local.xd
old-tls-le.s
overflow_b16.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_b21.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_b26.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_pcrel20.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_0_5_10_16_s2.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_0_10_10_16_s2.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_5_20.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_10_5.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_10_12.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_10_16_s2.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_s_10_16.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_u_10_12.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
overflow_u.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
partial-link-align-a.s LoongArch: Add -mignore-start-align option 2024-04-20 12:10:40 +08:00
partial-link-align-b.s LoongArch: Add -mignore-start-align option 2024-04-20 12:10:40 +08:00
pcala64.d
pcala64.s
pic.exp
pic.ld
pie_discard.d Avoid unused space in .rela.dyn if sec was discarded 2024-02-27 11:58:33 +08:00
pie_discard.s Avoid unused space in .rela.dyn if sec was discarded 2024-02-27 11:58:33 +08:00
pie_discard.t Avoid unused space in .rela.dyn if sec was discarded 2024-02-27 11:58:33 +08:00
relax-align-discard.lds BFD: Fix the bug of R_LARCH_AGLIN caused by discard section 2024-03-31 14:21:00 +08:00
relax-align-discard.s BFD: Fix the bug of R_LARCH_AGLIN caused by discard section 2024-03-31 14:21:00 +08:00
relax-align-ignore-start.d LoongArch: Add -mignore-start-align option 2024-04-20 12:10:40 +08:00
relax-align-ignore-start.s LoongArch: Add -mignore-start-align option 2024-04-20 12:10:40 +08:00
relax-align.dd
relax-align.s
relax-bound-check-tls-le.s
relax-medium-call-1.d LoongArch: Fix relaxation overflow caused by ld -z separate-code 2024-05-27 17:41:04 +08:00
relax-medium-call-1.s LoongArch: Fix relaxation overflow caused by ld -z separate-code 2024-05-27 17:41:04 +08:00
relax-medium-call.d LoongArch: Fix relaxation overflow caused by ld -z separate-code 2024-05-27 17:41:04 +08:00
relax-medium-call.s LoongArch: Fix relaxation overflow caused by ld -z separate-code 2024-05-27 17:41:04 +08:00
relax-section-align-overflow.s
relax-segment-max.s
relax-segment-min.s
relax-separate-code-overflow.s LoongArch: Fix relaxation overflow caused by ld -z separate-code 2024-05-27 17:41:04 +08:00
relax-so.s
relax-tls-le.s
relax-ttext.s LoongArch: Disable linker relaxation if set the address of section or segment 2024-06-04 19:47:27 +08:00
relax.exp LoongArch: Disable linker relaxation if set the address of section or segment 2024-06-04 19:47:27 +08:00
relax.s
reloc_abs_with_shared.d LoongArch: Add bad static relocation check and output more information to user 2024-04-25 09:21:26 +08:00
reloc_abs_with_shared.s LoongArch: Add bad static relocation check and output more information to user 2024-04-25 09:21:26 +08:00
reloc_le_with_shared.d LoongArch: Add bad static relocation check and output more information to user 2024-04-25 09:21:26 +08:00
reloc_le_with_shared.s LoongArch: Add bad static relocation check and output more information to user 2024-04-25 09:21:26 +08:00
reloc_ler_with_shared.d LoongArch: Add bad static relocation check and output more information to user 2024-04-25 09:21:26 +08:00
reloc_ler_with_shared.s LoongArch: Add bad static relocation check and output more information to user 2024-04-25 09:21:26 +08:00
syscall-0.s
syscall-1.s
syscall.d
tls-le-norelax.d LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tls-le-norelax.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tls-le-relax.d LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tls-le-relax.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tls-relax-compatible-check-new.s
tls-relax-compatible-check-old.s
tlsdesc_abs.d LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tlsdesc_abs.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tlsdesc_extreme.d LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tlsdesc_extreme.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
tlsdesc-dso-reloc.d LoongArch: TLS IE needs only one dynamic reloc 2024-06-20 16:55:24 +08:00
tlsdesc-dso.d LoongArch: TLS IE needs only one dynamic reloc 2024-06-20 16:55:24 +08:00
tlsdesc-dso.s LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
uleb128.dd
uleb128.s
underflow_b16.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_b21.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_b26.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_pcrel20.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_0_5_10_16_s2.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_0_10_10_16_s2.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_5_20.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_10_5.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_10_12.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_10_16_s2.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00
underflow_s_10_16.d LoongArch: ld: Fix other pop relocs overflow check and add tests 2024-02-27 11:54:34 +08:00