mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 17:33:00 +00:00
Read Sections before Scopes, because the later will reference the former.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5116 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
04a0dafe25
commit
871873b1ac
@ -381,15 +381,17 @@ static void LibResolve (void)
|
|||||||
/* Read the assertions from the object file */
|
/* Read the assertions from the object file */
|
||||||
ObjReadAssertions (L->F, O->Start + O->Header.AssertOffs, O);
|
ObjReadAssertions (L->F, O->Start + O->Header.AssertOffs, O);
|
||||||
|
|
||||||
/* Read the scope table from the object file */
|
|
||||||
ObjReadScopes (L->F, O->Start + O->Header.ScopeOffs, O);
|
|
||||||
|
|
||||||
/* Seek to the start of the segment list and read the segments.
|
/* Seek to the start of the segment list and read the segments.
|
||||||
* This must be last, since the data here may reference other
|
* This must be late, since the data here may reference other
|
||||||
* stuff.
|
* stuff.
|
||||||
*/
|
*/
|
||||||
ObjReadSections (L->F, O->Start + O->Header.SegOffs, O);
|
ObjReadSections (L->F, O->Start + O->Header.SegOffs, O);
|
||||||
|
|
||||||
|
/* Read the scope table from the object file. Scopes reference
|
||||||
|
* segments, so we must read them after the sections.
|
||||||
|
*/
|
||||||
|
ObjReadScopes (L->F, O->Start + O->Header.ScopeOffs, O);
|
||||||
|
|
||||||
/* All references to strings are now resolved, so we can delete
|
/* All references to strings are now resolved, so we can delete
|
||||||
* the module string pool.
|
* the module string pool.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user