Patchwork elf.h: Add R_RISCV_IRELATIVE

login
register
mail settings
Submitter Fangrui Song
Date Feb. 12, 2020, 5:34 a.m.
Message ID <20200212053458.s5y25bv262zemycd@google.com>
Download mbox | patch
Permalink /patch/37987/
State New
Headers show

Comments

Fangrui Song - Feb. 12, 2020, 5:34 a.m.
The number has been officially assigned by
https://github.com/riscv/riscv-elf-psabi-doc/pull/131
---
 elf/elf.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 2549a177d6..ab8930463c 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3946,8 +3946,9 @@  enum
 #define R_RISCV_SET16		55
 #define R_RISCV_SET32		56
 #define R_RISCV_32_PCREL	57
+#define R_RISCV_IRELATIVE	58
 
-#define R_RISCV_NUM		58
+#define R_RISCV_NUM		59
 
 /* BPF specific declarations.  */