[PATCH] D72027: [XCOFF][AIX] Support basic relocation type on AIX
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 14:22:28 PST 2020
daltenty added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/MCTargetDesc/PPCXCOFFObjectWriter.cpp:49
+ // Set the Sign Bit if needed.
+ if (IsPCRel)
+ SignAndSize |= SignBitMask;
----------------
I'm not sure that using IsPCRel this way makes sense, see R_TOC note below.
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-reloc.ll:85
+; RELOC-NEXT: Symbol: globalA (18)
+; RELOC-NEXT: IsSigned: No
+; RELOC-NEXT: FixupBitValue: 0
----------------
For the R_TOC relocation, shouldn't this be signed as this is a displacement?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72027/new/
https://reviews.llvm.org/D72027
More information about the llvm-commits
mailing list