about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-08-09 19:12:54 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-08-14 09:49:38 +0800
commit0fb888487eda6bc26ba1a8280f3616ea4fb20be5 (patch)
tree08809f8a86f529a39340aa320e7c07fbb74069fd
parent135407f43175899db98e9881daffed856a38042c (diff)
downloadglibc-0fb888487eda6bc26ba1a8280f3616ea4fb20be5.tar.gz
glibc-0fb888487eda6bc26ba1a8280f3616ea4fb20be5.tar.xz
glibc-0fb888487eda6bc26ba1a8280f3616ea4fb20be5.zip
elf: Add new LoongArch reloc types (101 to 108) into elf.h
These reloc types are generated by GNU assembler >= 2.41 for relaxation
support.

Link: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=57a930e3
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
-rw-r--r--elf/elf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/elf.h b/elf/elf.h
index 89fc8021e9..d623bdeb6f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -4205,6 +4205,14 @@ enum
 #define R_LARCH_TLS_GD_HI20 98
 #define R_LARCH_32_PCREL 99
 #define R_LARCH_RELAX 100
+#define R_LARCH_DELETE 101
+#define R_LARCH_ALIGN 102
+#define R_LARCH_PCREL20_S2 103
+#define R_LARCH_CFA 104
+#define R_LARCH_ADD6 105
+#define R_LARCH_SUB6 106
+#define R_LARCH_ADD_ULEB128 107
+#define R_LARCH_SUB_ULEB128 108
 
 /* ARC specific declarations.  */