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 "riscv64" RISCV_FP_SUFFIX 10570af302Sopenharmony_ci 11570af302Sopenharmony_ci#define TPOFF_K 0 12570af302Sopenharmony_ci 13570af302Sopenharmony_ci#define REL_SYMBOLIC R_RISCV_64 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_DTPMOD64 18570af302Sopenharmony_ci#define REL_DTPOFF R_RISCV_TLS_DTPREL64 19570af302Sopenharmony_ci#define REL_TPOFF R_RISCV_TLS_TPREL64 20570af302Sopenharmony_ci#define REL_TLSDESC R_RISCV_TLSDESC 21570af302Sopenharmony_ci 22570af302Sopenharmony_ci#define CRTJMP(pc,sp) __asm__ __volatile__( \ 23570af302Sopenharmony_ci "mv sp, %1 ; jr %0" : : "r"(pc), "r"(sp) : "memory" ) 24