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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user