- Deine FeatureRelax to enable/disable linker relaxation
- Define shouldForceRelocation to preserve relocation types when linker relaxation enabled. So then linker could fixup branches offsets while relaxation.
Paths
| Differential D46674
[RISCV] Define FeatureRelax and shouldForceRelocation for RISCV linker relaxation ClosedPublic Authored by shiva0217 on May 9 2018, 11:41 PM.
Details Summary
Diff Detail
Event TimelineHerald added subscribers: mgrang, edward-jones, zzheng and 7 others. · View Herald TranscriptMay 9 2018, 11:41 PM Comment Actions Thanks Shiva. I've suggested an alternate phrasing of the comment on shouldForceRelocation but this is looking good to me.
This revision is now accepted and ready to land.May 14 2018, 1:51 PM Closed by commit rL332318: [RISCV] Define FeatureRelax and shouldForceRelocation for RISCV linker… (authored by shiva). · Explain WhyMay 14 2018, 6:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 146730 lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
lib/Target/RISCV/RISCV.td
lib/Target/RISCV/RISCVSubtarget.h
|
I think this would be clearer rephrased with something like:
"If linker relaxation is enabled, always emit relocations even if the fixup can be resolved. This is necessary for correctness as offsets may change during relaxation."