]> git.sur5r.net Git - cc65/commitdiff
Symbols imported from the linker config must have the config file position
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Jan 2012 12:39:55 +0000 (12:39 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Jan 2012 12:39:55 +0000 (12:39 +0000)
added to the symbol references, not the definitions.

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

src/ld65/config.c

index 9a05bdd798d0abbb4bb9bb8d0dab14b8e34b2111..e9ee811390bb9e07a2d9470f447b4025e73c1881 100644 (file)
@@ -1427,7 +1427,7 @@ static void ParseSymbols (void)
                 /* Generate the import */
                 Imp = InsertImport (GenImport (Name, AddrSize));
                 /* Remember the file position */
-                CollAppend (&Imp->DefLines, GenLineInfo (&CfgErrorPos));
+                CollAppend (&Imp->RefLines, GenLineInfo (&CfgErrorPos));
                 break;
 
             case CfgSymWeak: