Changeset View
Changeset View
Standalone View
Standalone View
lld/ELF/Arch/RISCV.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | static uint32_t utype(uint32_t op, uint32_t rd, uint32_t imm) { | ||||
return op | (rd << 7) | (imm << 12); | return op | (rd << 7) | (imm << 12); | ||||
} | } | ||||
RISCV::RISCV() { | RISCV::RISCV() { | ||||
copyRel = R_RISCV_COPY; | copyRel = R_RISCV_COPY; | ||||
noneRel = R_RISCV_NONE; | noneRel = R_RISCV_NONE; | ||||
pltRel = R_RISCV_JUMP_SLOT; | pltRel = R_RISCV_JUMP_SLOT; | ||||
relativeRel = R_RISCV_RELATIVE; | relativeRel = R_RISCV_RELATIVE; | ||||
iRelativeRel = R_RISCV_IRELATIVE; | |||||
if (config->is64) { | if (config->is64) { | ||||
symbolicRel = R_RISCV_64; | symbolicRel = R_RISCV_64; | ||||
tlsModuleIndexRel = R_RISCV_TLS_DTPMOD64; | tlsModuleIndexRel = R_RISCV_TLS_DTPMOD64; | ||||
tlsOffsetRel = R_RISCV_TLS_DTPREL64; | tlsOffsetRel = R_RISCV_TLS_DTPREL64; | ||||
tlsGotRel = R_RISCV_TLS_TPREL64; | tlsGotRel = R_RISCV_TLS_TPREL64; | ||||
} else { | } else { | ||||
symbolicRel = R_RISCV_32; | symbolicRel = R_RISCV_32; | ||||
tlsModuleIndexRel = R_RISCV_TLS_DTPMOD32; | tlsModuleIndexRel = R_RISCV_TLS_DTPMOD32; | ||||
▲ Show 20 Lines • Show All 367 Lines • Show Last 20 Lines |