Track export ids of debug symbols and write the to the object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5183 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-16 12:52:56 +00:00
parent 63c53499be
commit aa1a103154
3 changed files with 21 additions and 4 deletions

View File

@@ -592,9 +592,9 @@ void SymCheck (void)
}
}
/* Count exports */
/* Count exports, assign the export ID */
if (S->Flags & SF_EXPORT) {
++ExportCount;
S->ExportId = ExportCount++;
}
/* If the symbol is defined but has an unknown address size,
@@ -865,10 +865,13 @@ void WriteDbgSyms (void)
ObjWriteVar (Size);
}
/* If the symbol is an import, write out its import id */
/* If the symbol is an im- or export, write out the ids */
if (SYM_IS_IMPORT (SymFlags)) {
ObjWriteVar (GetSymImportId (S));
}
if (SYM_IS_EXPORT (SymFlags)) {
ObjWriteVar (GetSymExportId (S));
}
/* Write the line infos */
WriteLineInfo (&S->LineInfos);