From b8e7feb78810e276865a522815dcc305e4f248d3 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 5 Aug 2010 19:34:03 +0000 Subject: [PATCH] Fix relocation of line infos. git-svn-id: svn://svn.cc65.org/cc65/trunk@4781 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/lineinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ld65/lineinfo.c b/src/ld65/lineinfo.c index 2cc4d86ac..2b5eba78f 100644 --- a/src/ld65/lineinfo.c +++ b/src/ld65/lineinfo.c @@ -152,7 +152,7 @@ static void AddCodeRange (LineInfo* LI, unsigned long Offs, unsigned long Size) void RelocLineInfo (Segment* S) /* Relocate the line info for a segment. */ { - unsigned long Offs = 0; + unsigned long Offs = S->PC; /* Loop over all sections in this segment */ Section* Sec = S->SecRoot;