Skip to content

Commit 45dd593

Browse files
committed
Update ePIC GPRel/PCRel rewrite rule to match the latest proposal
1 parent 9e98f3e commit 45dd593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Arch/RISCV.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ RelType RISCV::getDynRel(RelType type) const {
256256
static bool shouldMakePCRel(const Symbol &sym) {
257257
OutputSection *section = sym.getOutputSection();
258258
if (!section)
259-
return false;
259+
return true;
260260
return (section->flags & SHF_WRITE) == 0;
261261
}
262262

0 commit comments

Comments
 (0)