[PATCH] D67008: implement parsing relocation information for 32-bit xcoff objectfile
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 14:21:46 PDT 2019
hubert.reinterpretcast added inline comments.
================
Comment at: llvm/lib/Object/XCOFFObjectFile.cpp:660
+ return ArrayRef<XCOFFRelocation32>(StartReloc,
+ StartReloc + Sec.NumberOfRelocations);
+}
----------------
DiggerLin wrote:
> hubert.reinterpretcast wrote:
> > This should use the logical number of relocations, not the raw field value.
> there is no logical number of relocation , it defined as
> support::ubig16_t NumberOfRelocations; in the struct XCOFFSectionHeader32 {
"In an XCOFF32 file, if more than 65,534 relocation entries are required, the field value will be 65535, and an STYP_OVRFLO section header will contain the actual count of relocation entries in the s_paddr field."
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67008/new/
https://reviews.llvm.org/D67008
More information about the llvm-commits
mailing list