summaryrefslogtreecommitdiffstats
path: root/backends/loongarch_init.c
diff options
context:
space:
mode:
authorYouling Tang <[email protected]>2023-04-07 10:59:24 +0800
committerMark Wielaard <[email protected]>2023-05-09 11:48:15 +0200
commitde857968a715d1317b1686d2416b28ffe402dc09 (patch)
tree53441ec8a6905771f01b2ae2518c3e17ca139484 /backends/loongarch_init.c
parent6cad4e56a930034765f8e79ba2eaa2ff1cd8394f (diff)
backends: Add abi_cfi and register_info callbacks for LoongArch
LoongArch Reference Manual - Volume 1: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html LoongArch ELF ABI: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html Signed-off-by: Liwei Ge <[email protected]> Signed-off-by: Youling Tang <[email protected]>
Diffstat (limited to 'backends/loongarch_init.c')
-rw-r--r--backends/loongarch_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/loongarch_init.c b/backends/loongarch_init.c
index b641b07f..7bfaaa7f 100644
--- a/backends/loongarch_init.c
+++ b/backends/loongarch_init.c
@@ -46,6 +46,10 @@ loongarch_init (Elf *elf __attribute__ ((unused)),
loongarch_init_reloc (eh);
HOOK (eh, reloc_simple_type);
HOOK (eh, machine_flag_check);
+ HOOK (eh, register_info);
+ HOOK (eh, abi_cfi);
+ /* gcc/config/ #define DWARF_FRAME_REGISTERS. */
+ eh->frame_nregs = 74;
HOOK (eh, check_special_symbol);
return eh;