]> git.sur5r.net Git - cc65/commitdiff
Fixed an error: Symbol references for csyms were output as local, not global
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 1 Sep 2011 10:00:31 +0000 (10:00 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 1 Sep 2011 10:00:31 +0000 (10:00 +0000)
ids.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5292 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/dbgsyms.c

index db2f8c663cccb48be813fad7f4d0de3ac7365783..551979aac7e23433db372d947941b6a3ab7ba38c 100644 (file)
@@ -484,7 +484,7 @@ void PrintHLLDbgSyms (FILE* F)
 
             /* For non auto symbols output the debug symbol id of the asm sym */
             if (HLL_HAS_SYM (S->Flags)) {
-                fprintf (F, ",sym=%u", S->Sym->Id);
+                fprintf (F, ",sym=%u", O->SymBaseId + S->Sym->Id);
             }
 
             /* Terminate the output line */