From: uz Date: Mon, 2 Jan 2012 12:39:55 +0000 (+0000) Subject: Symbols imported from the linker config must have the config file position X-Git-Tag: V2.13.3~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9f48e663b863cb2fa6f15f3b2efb0882e8f9fd4;p=cc65 Symbols imported from the linker config must have the config file position added to the symbol references, not the definitions. git-svn-id: svn://svn.cc65.org/cc65/trunk@5367 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/config.c b/src/ld65/config.c index 9a05bdd79..e9ee81139 100644 --- a/src/ld65/config.c +++ b/src/ld65/config.c @@ -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: