[PATCH] D72027: [XCOFF][AIX] Support basic relocation type on AIX
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 13:11:46 PST 2020
DiggerLin added inline comments.
================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:51
+// however we only use 10 byte spaces when writing it out.
+constexpr unsigned SizeOfXCOFFRelocation32 = 10;
constexpr unsigned DefaultSectionAlign = 4;
----------------
can we use sizeof(XCOFFRelocation) when using SizeOfXCOFFRelocation32 ?
================
Comment at: llvm/lib/Target/PowerPC/MCTargetDesc/PPCXCOFFObjectWriter.cpp:86
+ case PPC::fixup_ppc_br24:
+ Result |= 25;
+ break;
----------------
// The relocation encodes the bit length being relocated minus 1. Add back the 1 to // get the actual length being relocated.
this one should be 23 ?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72027/new/
https://reviews.llvm.org/D72027
More information about the llvm-commits
mailing list