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 LoongArch: Add R_LARCH_64_PCREL relocation support 2023-06-28 16:14:35 +08:00
64_pcrel.s LoongArch: Add R_LARCH_64_PCREL relocation support 2023-06-28 16:14:35 +08:00
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 LoongArch: Add support for the third expression of .align for R_LARCH_ALIGN 2023-12-22 14:20:18 +08:00
anno-sym.l LoongArch: Add support for the third expression of .align for R_LARCH_ALIGN 2023-12-22 14:20:18 +08:00
anno-sym.s LoongArch: Add support for the third expression of .align for R_LARCH_ALIGN 2023-12-22 14:20:18 +08:00
attr-ifunc-4.c LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
attr-ifunc-4.out LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
cmodel-libjirl.dd LoongArch: ld: Fix bug not generate plt when link a dso 2022-08-24 14:27:03 +08:00
cmodel.exp Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
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 LoongArch: Fix linker generate PLT entry for data symbol 2024-01-04 19:08:53 +08:00
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 LoongArch: Fix some test failures about TLS desc and TLS relaxation 2024-01-22 17:14:36 +08:00
desc-norelax.s LoongArch: Add testsuit for DESC and tls transition and tls relaxation. 2023-12-25 11:46:22 +08:00
desc-relax.d LoongArch: Fix some test failures about TLS desc and TLS relaxation 2024-01-22 17:14:36 +08:00
desc-relax.s LoongArch: Add testsuit for DESC and tls transition and tls relaxation. 2023-12-25 11:46:22 +08:00
disas-jirl-32.d LoongArch: ld: Add support for linker relaxation. 2023-05-30 19:56:48 +08:00
disas-jirl-32.s ld:LoongArch: Add test cases to adapt to LoongArch32 and LoongArch64 2022-03-20 09:37:13 +08:00
disas-jirl.d LoongArch: ld: Add support for linker relaxation. 2023-05-30 19:56:48 +08:00
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 Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
jmp_op.d opcodes/loongarch: do not print hex notation for signed immediates 2023-06-30 10:18:01 +08:00
jmp_op.s opcodes: LoongArch: add "ret" instruction to reduce typing 2022-08-01 15:57:32 +08:00
ld-loongarch-elf.exp LoongArch: TLS IE needs only one dynamic reloc 2024-06-20 16:55:24 +08:00
libjirl.s LoongArch: Fix linker generate PLT entry for data symbol 2024-01-04 19:08:53 +08:00
libnopic-global.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
local-ifunc-reloc.d LoongArch: Fix loongarch*-elf target ld testsuite failure 2024-01-04 16:44:20 +08:00
local-ifunc-reloc.s LoongArch: Fix R_LARCH_IRELATIVE insertion after elf_link_sort_relocs 2022-09-20 17:16:06 +08:00
macro_op_32.d LoongArch: Fix gas and ld test cases 2024-03-12 17:37:12 +08:00
macro_op_32.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
macro_op.d LoongArch: Fix some test cases for TLS transition and relax 2024-03-06 14:47:03 +08:00
macro_op.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
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 LoongArch: Add call36 and tail36 pseudo instructions for medium code model 2023-12-18 18:36:29 +08:00
nopic-global-so.rd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-global-so.sd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-global.out LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-global.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-global.sd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-global.xd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-local.out LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-local.rd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-local.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-local.sd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-local.xd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-global-so.rd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-global-so.sd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-global.out LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-global.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-global.sd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-global.xd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-local.out LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-local.rd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-local.s LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-local.sd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
nopic-weak-local.xd LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
old-tls-le.s LoongArch: ld: Add support for tls le relax. 2023-12-29 15:11:01 +08:00
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 LoongArch: Adapt R_LARCH_{PCALA,GOT,TLS_IE,TLS_DESC}64_* handling per psABI v2.30 2024-01-17 15:15:33 +08:00
pcala64.s LoongArch: Adapt R_LARCH_{PCALA,GOT,TLS_IE,TLS_DESC}64_* handling per psABI v2.30 2024-01-17 15:15:33 +08:00
pic.exp Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
pic.ld LoongArch: Add testcases for new relocate types. 2022-07-25 09:59:08 +08:00
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 LoongArch: Add support for the third expression of .align for R_LARCH_ALIGN 2023-12-22 14:20:18 +08:00
relax-align.s LoongArch: Add support for the third expression of .align for R_LARCH_ALIGN 2023-12-22 14:20:18 +08:00
relax-bound-check-tls-le.s LoongArch: ld: Add support for tls le relax. 2023-12-29 15:11:01 +08:00
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 LoongArch: Fix relaxation overflow caused by section alignment 2024-01-12 15:38:42 +08:00
relax-segment-max.s LoongArch: Add more relaxation testcases 2023-11-17 16:38:55 +08:00
relax-segment-min.s LoongArch: Add more relaxation testcases 2023-11-17 16:38:55 +08:00
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 LoongArch: Add more relaxation testcases 2023-11-17 16:38:55 +08:00
relax-tls-le.s LoongArch: ld: Add support for tls le relax. 2023-12-29 15:11:01 +08:00
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 LoongArch: ld: Add support for linker relaxation. 2023-05-30 19:56:48 +08:00
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 LoongArch: ld: Add support for tls le relax. 2023-12-29 15:11:01 +08:00
tls-relax-compatible-check-old.s LoongArch: ld: Add support for tls le relax. 2023-12-29 15:11:01 +08:00
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 LoongArch: ld: Add support for linker relaxation. 2023-05-30 19:56:48 +08:00
uleb128.s LoongArch: ld: Add support for linker relaxation. 2023-05-30 19:56:48 +08:00
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