From dc5f359ed6a36d2c895d89c3e4886f3a2b6d9232 Mon Sep 17 00:00:00 2001 From: mengqinggang Date: Thu, 28 Sep 2023 16:41:15 +0800 Subject: LoongArch: Add new relocation R_LARCH_CALL36 R_LARCH_CALL36 is used for medium code model function call pcaddu18i+jirl, and these two instructions must adjacent. The LoongArch ABI v2.20 at here: https://github.com/loongson/la-abi-specs. --- include/elf/loongarch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h index e31395e..34719ee 100644 --- a/include/elf/loongarch.h +++ b/include/elf/loongarch.h @@ -251,6 +251,8 @@ RELOC_NUMBER (R_LARCH_SUB_ULEB128, 108) RELOC_NUMBER (R_LARCH_64_PCREL, 109) +RELOC_NUMBER (R_LARCH_CALL36, 110) + END_RELOC_NUMBERS (R_LARCH_count) /* Processor specific flags for the ELF header e_flags field. */ -- cgit v1.1