riscv_elf.h 290 B

1234567891011121314
  1. #ifndef __RISCV_ELF_H__
  2. #define __RISCV_ELF_H__
  3. #include <sbi/riscv_asm.h>
  4. #define R_RISCV_32 1
  5. #define R_RISCV_64 2
  6. #define R_RISCV_RELATIVE 3
  7. #define RELOC_TYPE __REG_SEL(R_RISCV_64, R_RISCV_32)
  8. #define SYM_INDEX __REG_SEL(0x20, 0x8)
  9. #define SYM_SIZE __REG_SEL(0x18,0x10)
  10. #endif