[PATCH] D103539: WIP: try to repair RISCV handling of paired relocations
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 2 12:08:58 PDT 2021
jrtc27 added inline comments.
================
Comment at: llvm/lib/MC/ELFObjectWriter.cpp:1522-1526
+ // RISC-V requires the relocation to be split up to handle the ADD_SUB split
+ // relocation. These are required to ensure that symbolic differences are
+ // emitted as paired ADD/SUB relocations.
+ if (!InSet && TargetObjectWriter->getEMachine() == ELF::EM_RISCV)
+ return false;
----------------
Why is this not a hook?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103539/new/
https://reviews.llvm.org/D103539
More information about the llvm-commits
mailing list