RISC-V: Add definition of relocation types
authorZong Li <zong@andestech.com>
Thu, 15 Mar 2018 08:50:51 +0000 (16:50 +0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 3 Apr 2018 03:00:56 +0000 (20:00 -0700)
Signed-off-by: Zong Li <zong@andestech.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/uapi/asm/elf.h

index a510edfa82264c6e52b1638ad1d14e7c24b313f3..5cae4c30cd8e2e2147b59285f9eccaaae7e9a789 100644 (file)
@@ -79,5 +79,12 @@ typedef union __riscv_fp_state elf_fpregset_t;
 #define R_RISCV_TPREL_I                49
 #define R_RISCV_TPREL_S                50
 #define R_RISCV_RELAX          51
+#define R_RISCV_SUB6           52
+#define R_RISCV_SET6           53
+#define R_RISCV_SET8           54
+#define R_RISCV_SET16          55
+#define R_RISCV_SET32          56
+#define R_RISCV_32_PCREL       57
+
 
 #endif /* _UAPI_ASM_ELF_H */