Write out global symbols to the debug file. Added some fixes for unusual

situations (extern symbols without attached import, because the import wasn't
referenced and therefore removed by the assembler).


git-svn-id: svn://svn.cc65.org/cc65/trunk@5290 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-31 20:48:40 +00:00
parent f204ec956a
commit 8fc851b338
6 changed files with 69 additions and 37 deletions

View File

@@ -397,7 +397,7 @@ void Compile (const char* FileName)
void FinishCompile (void)
/* Emit literals, externals, do cleanup and optimizations */
/* Emit literals, externals, debug info, do cleanup and optimizations */
{
SymTable* SymTab;
SymEntry* Func;
@@ -418,6 +418,9 @@ void FinishCompile (void)
/* Output the literal pool */
OutputLiteralPool ();
/* Emit debug infos if enabled */
EmitDebugInfo ();
/* Write imported/exported symbols */
EmitExternals ();