mengqinggang
be1ebb6710
LoongArch: Add R_LARCH_64_PCREL relocation support
Gas defaults to emit R_LARCH_ADD64/R_LARCH_SUB64 unless explcitly declared
to emit R_LARCH_64_PCREL.
The LoongArch ABI at here:
https://github.com/loongson/la-abi-specs/blob/release/la-abi.adoc
bfd/ChangeLog:
* bfd-in2.h (not): Add R_LARCH_64_PCREL
* elfnn-loongarch.c (perform_relocation): Likewise.
* elfxx-loongarch.c: Likewise.
* libbfd.h: Likewise.
* reloc.c: Likewise.
gas/ChangeLog:
* config/tc-loongarch.c (loongarch_args_parser_can_match_arg_helper):
(md_apply_fix): Add R_LARCH_64_PCREL.
* testsuite/gas/loongarch/64_pcrel.d: New test.
* testsuite/gas/loongarch/64_pcrel.s: New test.
include/ChangeLog:
* elf/loongarch.h (RELOC_NUMBER): Add R_LARCH_64_PCREL.
ld/ChangeLog:
* testsuite/ld-loongarch-elf/ld-loongarch-elf.exp: Add test.
* testsuite/ld-loongarch-elf/64_pcrel.d: New test.
* testsuite/ld-loongarch-elf/64_pcrel.s: New test.
2023-06-28 16:14:35 +08:00
..
2023-06-15 04:45:03 +01:00
2023-05-23 16:43:14 +02:00
2023-01-01 21:50:11 +10:30
2023-04-13 11:21:01 +03:00
2023-01-20 14:58:04 +01:00
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-02-06 10:31:26 +10:30
2023-03-20 15:35:21 +00:00
2023-01-01 21:50:11 +10:30
2023-02-21 16:21:42 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2022-05-31 11:25:09 +09:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-06-21 11:47:19 +01:00
2023-06-07 14:30:13 +01:00
2023-06-15 04:45:03 +01:00
2023-01-02 14:03:22 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-06-15 04:45:03 +01:00
2023-01-01 21:50:11 +10:30
2023-01-25 08:57:57 -08:00
2023-01-01 21:50:11 +10:30
2023-01-09 16:51:57 +01:00
2023-02-21 16:21:25 +10:30
2023-01-01 21:50:11 +10:30
2023-06-28 16:14:35 +08:00
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-06-15 04:45:03 +01:00
2023-06-15 11:45:03 +09:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-02-11 16:43:54 +10:30
2023-01-01 21:50:11 +10:30
2022-05-31 11:25:09 +09:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-02-28 00:28:26 +00:00
2023-01-01 21:50:11 +10:30
2023-06-23 21:02:48 +09:30
2023-01-01 21:50:11 +10:30
2022-05-31 11:25:09 +09:30
2023-05-19 16:24:10 +08:00
2023-01-01 21:50:11 +10:30
2023-01-10 14:34:16 +01:00
2023-06-15 04:45:03 +01:00
2023-06-15 04:45:03 +01:00
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-06-15 04:45:03 +01:00
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-02-11 16:43:54 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-06-15 04:45:03 +01:00
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-02-23 10:48:16 +00:00
2023-01-01 21:50:11 +10:30
2023-01-01 21:50:11 +10:30
2023-03-29 12:56:46 +10:30