Skip to content

Commit 58bd3a5

Browse files
committed
[ELF][RISCV] Don't set sizeRel
This exists to support __cap_relocs for preemptible symbols, but that was always a bit broken and was replaced long ago even on CHERI-MIPS with proper ELF relocations (though the option not to still exists). CHERI-RISC-V never used this, and CheriBSD does not support it.
1 parent eff51f0 commit 58bd3a5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lld/ELF/Arch/RISCV.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ RISCV::RISCV() {
112112
pltRel = R_RISCV_JUMP_SLOT;
113113
relativeRel = R_RISCV_RELATIVE;
114114
iRelativeRel = R_RISCV_IRELATIVE;
115-
sizeRel = R_RISCV_CHERI_SIZE;
116115
cheriCapRel = R_RISCV_CHERI_CAPABILITY;
117116
// TODO: R_RISCV_CHERI_JUMP_SLOT in a separate .got.plt / .captable.plt
118117
cheriCapCallRel = R_RISCV_CHERI_CAPABILITY;

0 commit comments

Comments
 (0)