mengqinggang
e493ba6255
LoongArch: Fix linker generate PLT entry for data symbol
...
With old "medium" code model, we call a function with a pair of PCALAU12I
and JIRL instructions. The assembler produces something like:
8: 1a00000c pcalau12i $t0, 0
8: R_LARCH_PCALA_HI20 g
c: 4c000181 jirl $ra, $t0, 0
c: R_LARCH_PCALA_LO12 g
The linker generates a "PLT entry" for data without any diagnostic.
If "g" is a data symbol and ld with -shared option, it may load two
instructions in the PLT.
Without -shared option, loongarch_elf_adjust_dynamic_symbol can delete PLT
entry.
For R_LARCH_PCALA_HI20 relocation, linker only generate PLT entry for STT_FUNC
and STT_GNU_IFUNC symbols.
2024-01-04 19:08:53 +08:00
..
2023-06-28 16:14:35 +08:00
2023-06-28 16:14:35 +08:00
2023-12-22 14:20:18 +08:00
2023-12-22 14:20:18 +08:00
2023-12-22 14:20:18 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-08-24 14:27:03 +08:00
2023-01-01 21:50:11 +10:30
2024-01-04 19:08:53 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-05-30 19:56:48 +08:00
2022-03-20 09:37:13 +08:00
2023-05-30 19:56:48 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-01-01 21:50:11 +10:30
2023-06-30 10:18:01 +08:00
2022-08-01 15:57:32 +08:00
2024-01-04 19:08:53 +08:00
2024-01-04 19:08:53 +08:00
2022-07-25 09:59:08 +08:00
2024-01-04 16:44:20 +08:00
2022-09-20 17:16:06 +08:00
2023-12-25 11:46:22 +08:00
2022-07-25 09:59:08 +08:00
2023-12-25 11:46:22 +08:00
2022-07-25 09:59:08 +08:00
2023-12-18 18:36:29 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2022-07-25 09:59:08 +08:00
2023-12-29 15:11:01 +08:00
2023-01-01 21:50:11 +10:30
2022-07-25 09:59:08 +08:00
2023-12-22 14:20:18 +08:00
2023-12-22 14:20:18 +08:00
2023-12-29 15:11:01 +08:00
2023-11-17 16:38:55 +08:00
2023-11-17 16:38:55 +08:00
2023-11-17 16:38:55 +08:00
2023-12-29 15:11:01 +08:00
2024-01-04 16:44:20 +08:00
2023-05-30 19:56:48 +08:00
2023-12-29 15:11:01 +08:00
2023-12-29 15:11:01 +08:00
2023-12-25 11:46:22 +08:00
2023-12-25 11:46:22 +08:00
2023-05-30 19:56:48 +08:00
2023-05-30 19:56:48 +08:00