Minor formatting changes after review.
This commit is contained in:
@@ -227,8 +227,9 @@ static void BinWriteMem (BinDesc* D, MemoryArea* M)
|
|||||||
SegWrite (D->Filename, D->F, S->Seg, BinWriteExpr, D);
|
SegWrite (D->Filename, D->F, S->Seg, BinWriteExpr, D);
|
||||||
PrintNumVal ("Wrote", (unsigned long) (ftell (D->F) - P));
|
PrintNumVal ("Wrote", (unsigned long) (ftell (D->F) - P));
|
||||||
/* If we have just written an OVERWRITE segement, move position to the
|
/* If we have just written an OVERWRITE segement, move position to the
|
||||||
* end of file, so that subsequent segments are written in the correct
|
** end of file, so that subsequent segments are written in the correct
|
||||||
* place. */
|
** place.
|
||||||
|
*/
|
||||||
if (S->Flags & SF_OVERWRITE) {
|
if (S->Flags & SF_OVERWRITE) {
|
||||||
fseek (D->F, 0, SEEK_END);
|
fseek (D->F, 0, SEEK_END);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2111,8 +2111,8 @@ unsigned CfgProcess (void)
|
|||||||
** unless it's an OVERWRITE segment.
|
** unless it's an OVERWRITE segment.
|
||||||
*/
|
*/
|
||||||
if (S->Load == M &&
|
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) {
|
(S->Flags & SF_OVERWRITE) == 0) {
|
||||||
M->F->Size += Addr - StartAddr;
|
M->F->Size += Addr - StartAddr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user