Write spans out in a separate object file section. This allows to merge
duplicate spans in an object file and more extensions to come. git-svn-id: svn://svn.cc65.org/cc65/trunk@5250 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -200,6 +200,8 @@ static void LibReadObjHeader (Library* L, ObjData* O)
|
||||
O->Header.AssertSize = Read32 (L->F);
|
||||
O->Header.ScopeOffs = Read32 (L->F);
|
||||
O->Header.ScopeSize = Read32 (L->F);
|
||||
O->Header.SpanOffs = Read32 (L->F);
|
||||
O->Header.SpanSize = Read32 (L->F);
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +222,7 @@ static ObjData* ReadIndexEntry (Library* L)
|
||||
O->Flags = Read16 (L->F);
|
||||
O->MTime = Read32 (L->F);
|
||||
O->Start = Read32 (L->F);
|
||||
Read32 (L->F); /* Skip Size */
|
||||
Read32 (L->F); /* Skip Size */
|
||||
|
||||
/* Done */
|
||||
return O;
|
||||
@@ -243,6 +245,9 @@ static void ReadBasicData (Library* L, ObjData* O)
|
||||
/* Read the files list */
|
||||
ObjReadFiles (L->F, O->Start + O->Header.FileOffs, O);
|
||||
|
||||
/* Read the spans */
|
||||
ObjReadSpans (L->F, O->Start + O->Header.SpanOffs, O);
|
||||
|
||||
/* Read the line infos */
|
||||
ObjReadLineInfos (L->F, O->Start + O->Header.LineInfoOffs, O);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user