[PATCH] D120861: [XCOFF][1/3] support fileHeader and sectionHeaders in 64-bit XCOFF.
Digger Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 14:17:04 PDT 2022
DiggerLin added inline comments.
================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:1039
// Calculate the RawPointer value for each section.
- uint64_t RawPointer = XCOFF::FileHeaderSize32 + auxiliaryHeaderSize() +
- SectionCount * XCOFF::SectionHeaderSize32;
+ uint64_t RawPointer = is64Bit() ? (XCOFF::FileHeaderSize64 +
+ SectionCount * XCOFF::SectionHeaderSize64)
----------------
why there is no "+auxiliaryHeaderSize() "
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120861/new/
https://reviews.llvm.org/D120861
More information about the llvm-commits
mailing list