summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVivian Wang <[email protected]>2023-09-18 01:52:50 +0800
committerAnup Patel <[email protected]>2023-10-06 09:21:23 +0530
commit2a6d72534d44c39e1de0614970a0dad97b1c41ba (patch)
tree69a2a42c6abca54f0121aeef2c6da6733f7ed9e8 /include
parentde525ac18dc32bafc64e78893f343afdd6003028 (diff)
firmware: Remove handling of R_RISCV_{32,64}
Since everything is statically linked, we won't actually have R_RISCV_{32,64} relocations. No need to handle these. Fixes: 0f20e8adcf42 ("firmware: Support position independent execution") Signed-off-by: Vivian Wang <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/riscv_elf.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/sbi/riscv_elf.h b/include/sbi/riscv_elf.h
index 3b62c38b..ed361e34 100644
--- a/include/sbi/riscv_elf.h
+++ b/include/sbi/riscv_elf.h
@@ -1,14 +1,6 @@
#ifndef __RISCV_ELF_H__
#define __RISCV_ELF_H__
-#include <sbi/riscv_asm.h>
-
-#define R_RISCV_32 1
-#define R_RISCV_64 2
#define R_RISCV_RELATIVE 3
-#define RELOC_TYPE __REG_SEL(R_RISCV_64, R_RISCV_32)
-#define SYM_INDEX __REG_SEL(0x20, 0x8)
-#define SYM_SIZE __REG_SEL(0x18,0x10)
-
#endif