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:
uz
2010-08-01 13:52:06 +00:00
parent 83e5252785
commit e046ecbcf2
2 changed files with 6 additions and 2 deletions

View File

@@ -783,12 +783,14 @@ static void O65WriteSeg (O65Desc* D, SegDesc** Seg, unsigned Count, int DoWrite)
/* Get the segment from the list node */
S = Seg [I];
/* Relocate line info for this segment */
RelocLineInfo (S->Seg);
/* Keep the user happy */
Print (stdout, 1, " Writing `%s'\n", GetString (S->Name));
/* Write this segment */
if (DoWrite) {
RelocLineInfo (S->Seg);
SegWrite (D->F, S->Seg, O65WriteExpr, D);
}