Skip to content

Commit 78dd597

Browse files
committed
[ELF][RISCV] Don't set cheriCapCallRel
This was never on CHERI-RISC-V even when we used .captable, as we passed R_CHERI_CAPABILITY_TABLE_INDEX to ensure the relocation was in .rela.dyn and thus would also use cheriCapRel rather than cheriCapCallRel. Now the normal .got is used instead there isn't even a path that could use this.
1 parent 58bd3a5 commit 78dd597

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lld/ELF/Arch/RISCV.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ RISCV::RISCV() {
113113
relativeRel = R_RISCV_RELATIVE;
114114
iRelativeRel = R_RISCV_IRELATIVE;
115115
cheriCapRel = R_RISCV_CHERI_CAPABILITY;
116-
// TODO: R_RISCV_CHERI_JUMP_SLOT in a separate .got.plt / .captable.plt
117-
cheriCapCallRel = R_RISCV_CHERI_CAPABILITY;
118116
if (config->is64) {
119117
symbolicRel = R_RISCV_64;
120118
tlsModuleIndexRel = R_RISCV_TLS_DTPMOD64;

0 commit comments

Comments
 (0)