[PATCH] D138982: [XCOFF] adjust the Fixedvalue for R_RBR relocations.
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 17:33:40 PST 2022
shchenz accepted this revision as: shchenz.
shchenz added a comment.
LGTM too with one nit. Thanks for fixing this.
================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:653
+ SectionMap[SymASec]->Address - BRInstrAddress + Target.getConstant();
}
----------------
For the other `else`(relocation types), maybe we should add an assertion here to avoid any other unhandled relocation type that may introduce in `PPCXCOFFObjectWriter::getRelocTypeAndSignSize()` in future. The assertion will help us address the root cause early like the one for `XCOFF::RelocationType::R_RBR`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138982/new/
https://reviews.llvm.org/D138982
More information about the llvm-commits
mailing list