xref: /third_party/musl/arch/riscv32/reloc.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/arch/riscv32/
1570af302Sopenharmony_ci#if defined __riscv_float_abi_soft
2570af302Sopenharmony_ci#define RISCV_FP_SUFFIX "-sf"
3570af302Sopenharmony_ci#elif defined __riscv_float_abi_single
4570af302Sopenharmony_ci#define RISCV_FP_SUFFIX "-sp"
5570af302Sopenharmony_ci#elif defined __riscv_float_abi_double
6570af302Sopenharmony_ci#define RISCV_FP_SUFFIX ""
7570af302Sopenharmony_ci#endif
8570af302Sopenharmony_ci
9570af302Sopenharmony_ci#define LDSO_ARCH "riscv32" RISCV_FP_SUFFIX
10570af302Sopenharmony_ci
11570af302Sopenharmony_ci#define TPOFF_K 0
12570af302Sopenharmony_ci
13570af302Sopenharmony_ci#define REL_SYMBOLIC    R_RISCV_32
14570af302Sopenharmony_ci#define REL_PLT         R_RISCV_JUMP_SLOT
15570af302Sopenharmony_ci#define REL_RELATIVE    R_RISCV_RELATIVE
16570af302Sopenharmony_ci#define REL_COPY        R_RISCV_COPY
17570af302Sopenharmony_ci#define REL_DTPMOD      R_RISCV_TLS_DTPMOD32
18570af302Sopenharmony_ci#define REL_DTPOFF      R_RISCV_TLS_DTPREL32
19570af302Sopenharmony_ci#define REL_TPOFF       R_RISCV_TLS_TPREL32
20570af302Sopenharmony_ci
21570af302Sopenharmony_ci#define CRTJMP(pc,sp) __asm__ __volatile__( \
22570af302Sopenharmony_ci	"mv sp, %1 ; jr %0" : : "r"(pc), "r"(sp) : "memory" )
23

Indexes created Thu Nov 07 10:32:03 CST 2024