Extend the object code format by adding a (currently empty) scope table.
Use the address size for import, export and debug symbols (object code change). More changes to support the --memory-model switch and address sizes. git-svn-id: svn://svn.cc65.org/cc65/trunk@2691 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -90,6 +90,8 @@ ObjData* NewObjData (void)
|
||||
O->Strings = 0;
|
||||
O->AssertionCount = 0;
|
||||
O->Assertions = 0;
|
||||
O->ScopeCount = 0;
|
||||
O->Scopes = 0;
|
||||
|
||||
/* Return the new entry */
|
||||
return O;
|
||||
@@ -192,8 +194,10 @@ const char* GetSourceFileName (const ObjData* O, unsigned Index)
|
||||
|
||||
/* Check the parameter */
|
||||
if (Index >= O->FileCount) {
|
||||
Error ("Invalid file index (%u) in module `%s' (input file corrupt?)",
|
||||
/* Error() will terminate the program */
|
||||
Warning ("Invalid file index (%u) in module `%s' (input file corrupt?)",
|
||||
Index, GetObjFileName (O));
|
||||
return "[invalid]"; /* ### */
|
||||
}
|
||||
|
||||
/* Return the name */
|
||||
|
||||
Reference in New Issue
Block a user