aboutsummaryrefslogtreecommitdiff
path: root/include/elf/loongarch.h
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2022-12-01 14:34:10 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-05-30 19:56:40 +0800
commit57a930e3bfe4b2c7fd6463ed39311e1938513138 (patch)
tree220687a30b5c57cbc3283bae2e189ea628e44ce3 /include/elf/loongarch.h
parent7b9e7db08340cb3934a5fa95503fda523e0917b7 (diff)
downloadgdb-57a930e3bfe4b2c7fd6463ed39311e1938513138.zip
gdb-57a930e3bfe4b2c7fd6463ed39311e1938513138.tar.gz
gdb-57a930e3bfe4b2c7fd6463ed39311e1938513138.tar.bz2
LoongArch: include: Add support for linker relaxation.
Add relocs and gas LARCH_opts.relax option. include/ChangeLog: * elf/loongarch.h: Add relocs. * opcode/loongarch.h: Add LARCH_opts.relax and macro LARCH_NOP.
Diffstat (limited to 'include/elf/loongarch.h')
-rw-r--r--include/elf/loongarch.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h
index ba0075d..71ab34f 100644
--- a/include/elf/loongarch.h
+++ b/include/elf/loongarch.h
@@ -229,6 +229,26 @@ RELOC_NUMBER (R_LARCH_32_PCREL, 99)
/* RELAX. */
RELOC_NUMBER (R_LARCH_RELAX, 100)
+/* relax delete. */
+RELOC_NUMBER (R_LARCH_DELETE, 101)
+
+/* relax align. */
+RELOC_NUMBER (R_LARCH_ALIGN, 102)
+
+/* pcaddi. */
+RELOC_NUMBER (R_LARCH_PCREL20_S2, 103)
+
+/* cfa. */
+RELOC_NUMBER (R_LARCH_CFA, 104)
+
+/* DW_CFA_advance_loc. */
+RELOC_NUMBER (R_LARCH_ADD6, 105)
+RELOC_NUMBER (R_LARCH_SUB6, 106)
+
+/* unsigned leb128. */
+RELOC_NUMBER (R_LARCH_ADD_ULEB128, 107)
+RELOC_NUMBER (R_LARCH_SUB_ULEB128, 108)
+
END_RELOC_NUMBERS (R_LARCH_count)
/* Processor specific flags for the ELF header e_flags field. */