This commit is contained in:
laubzega
2020-05-25 23:43:28 -07:00
committed by Oliver Schmidt
parent 68eb0f2cdc
commit 083f3ae26b
2 changed files with 11 additions and 3 deletions

View File

@@ -2107,10 +2107,12 @@ unsigned CfgProcess (void)
Addr += S->Seg->Size;
/* If this segment will go out to the file, or its place
** in the file will be filled, then increase the file size.
** in the file will be filled, then increase the file size,
** unless it's an OVERWRITE segment.
*/
if (S->Load == M &&
((S->Flags & SF_BSS) == 0 || (M->Flags & MF_FILL) != 0)) {
((S->Flags & SF_BSS) == 0 || (M->Flags & MF_FILL) != 0)
&& (S->Flags & SF_OVERWRITE) == 0) {
M->F->Size += Addr - StartAddr;
}
}