[PATCH] D127549: RISCV: handle 64-bit PCREL data relocations
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 19:21:55 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp:236
+ // Avoid relaxation for symbolic difference in debug and eh_frame sections
+ if (A.isInSection())
+ return !IsDebugOrEHFrameSection(A.getSection());
----------------
compnerd wrote:
> craig.topper wrote:
> > Should relaxation here be relocation?
> In the case of a compact code model, we can relax the pair of relocations to a single relocation. You would still have a relocation, it just is a nominally smaller file, and fewer relocations for the linker to process.
I was asking about “Avoid relaxation for symbolic differences…”. Is relaxation the right word there?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127549/new/
https://reviews.llvm.org/D127549
More information about the llvm-commits
mailing list