mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed uninitialized member (issue for reproducible builds)
This commit is contained in:
parent
f5cc8190ef
commit
4a83bedd13
1 changed files with 3 additions and 4 deletions
|
@ -2319,7 +2319,6 @@ void BeCOFFObject::Finish()
|
|||
symInfo.mStorageClass = IMAGE_SYM_CLASS_STATIC;
|
||||
symInfo.mNumOfAuxSymbols = 1;
|
||||
|
||||
//mStream->WriteT(symInfo);
|
||||
symInfoVec.push_back(symInfo);
|
||||
|
||||
static_assert(sizeof(PE_SymInfoAux) == sizeof(PE_SymInfo), "PE_SymInfo size mismatch");
|
||||
|
@ -2332,7 +2331,8 @@ void BeCOFFObject::Finish()
|
|||
auxSymInfo.mNumber = 0;
|
||||
auxSymInfo.mSelection = 2; // Pick any (only applicable for COMDAT but ignored elsewhere)
|
||||
auxSymInfo.mUnused = 0;
|
||||
//mStream->WriteT(auxSymInfo);
|
||||
auxSymInfo.mUnused2 = 0;
|
||||
auxSymInfo.mUnused3 = 0;
|
||||
symInfoVec.push_back(*(PE_SymInfo*)&auxSymInfo);
|
||||
|
||||
continue;
|
||||
|
@ -2367,7 +2367,6 @@ void BeCOFFObject::Finish()
|
|||
symInfo.mValue = sym->mValue;
|
||||
symInfo.mSectionNum = sym->mSectionNum;
|
||||
}
|
||||
///mStream->WriteT(symInfo);
|
||||
symInfoVec.push_back(symInfo);
|
||||
}
|
||||
if (!symInfoVec.IsEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue