Must read line infos earlier when reading in an object files, because later
data references it. git-svn-id: svn://svn.cc65.org/cc65/trunk@4927 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -301,6 +301,9 @@ void ObjAdd (FILE* Obj, const char* Name)
|
|||||||
/* Read the files list from the object file */
|
/* Read the files list from the object file */
|
||||||
ObjReadFiles (Obj, O->Header.FileOffs, O);
|
ObjReadFiles (Obj, O->Header.FileOffs, O);
|
||||||
|
|
||||||
|
/* Read the line infos from the object file */
|
||||||
|
ObjReadLineInfos (Obj, O->Header.LineInfoOffs, O);
|
||||||
|
|
||||||
/* Read the imports list from the object file */
|
/* Read the imports list from the object file */
|
||||||
ObjReadImports (Obj, O->Header.ImportOffs, O);
|
ObjReadImports (Obj, O->Header.ImportOffs, O);
|
||||||
|
|
||||||
@@ -310,9 +313,6 @@ void ObjAdd (FILE* Obj, const char* Name)
|
|||||||
/* Read the object debug symbols from the object file */
|
/* Read the object debug symbols from the object file */
|
||||||
ObjReadDbgSyms (Obj, O->Header.DbgSymOffs, O);
|
ObjReadDbgSyms (Obj, O->Header.DbgSymOffs, O);
|
||||||
|
|
||||||
/* Read the line infos from the object file */
|
|
||||||
ObjReadLineInfos (Obj, O->Header.LineInfoOffs, O);
|
|
||||||
|
|
||||||
/* Read the assertions from the object file */
|
/* Read the assertions from the object file */
|
||||||
ObjReadAssertions (Obj, O->Header.AssertOffs, O);
|
ObjReadAssertions (Obj, O->Header.AssertOffs, O);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user