Be sure to generate line info for all segments.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4778 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -200,6 +200,9 @@ static void BinWriteMem (BinDesc* D, Memory* M)
|
||||
Addr = NewAddr;
|
||||
}
|
||||
|
||||
/* Relocate line information for this segment */
|
||||
RelocLineInfo (S->Seg);
|
||||
|
||||
} else if (S->Load == M) {
|
||||
|
||||
/* Handle ALIGN_LOAD */
|
||||
@@ -221,7 +224,6 @@ static void BinWriteMem (BinDesc* D, Memory* M)
|
||||
*/
|
||||
if (DoWrite) {
|
||||
unsigned long P = ftell (D->F);
|
||||
RelocLineInfo (S->Seg);
|
||||
S->Seg->FillVal = M->FillVal;
|
||||
SegWrite (D->F, S->Seg, BinWriteExpr, D);
|
||||
PrintNumVal ("Wrote", (unsigned long) (ftell (D->F) - P));
|
||||
|
||||
Reference in New Issue
Block a user