]> git.sur5r.net Git - cc65/blobdiff - src/ca65/main.c
More lineinfo usage.
[cc65] / src / ca65 / main.c
index a5db62559750a994032965c69acc8f7a49ee4d38..ceadced2ed13dd3e6d47bf55391920771ba9d6c3 100644 (file)
@@ -862,6 +862,11 @@ int main (int argc, char* argv [])
      */
     SymEnterLevel (&GlobalNameSpace, ST_GLOBAL, ADDR_SIZE_DEFAULT);
 
+    /* Initialize the line infos. Must be done here, since we need line infos 
+     * for symbol definitions.
+     */
+    InitLineInfo ();
+
     /* Check the parameters */
     I = 1;
     while (I < ArgCount) {
@@ -980,9 +985,6 @@ int main (int argc, char* argv [])
     /* Initialize the segments */
     InitSegments ();
 
-    /* Initialize the line infos */
-    InitLineInfo ();
-
     /* Initialize the scanner, open the input file */
     InitScanner (InFile);