Skip to content

Commit

Permalink
Don’t add the length of the last segment generated in the previous ex…
Browse files Browse the repository at this point in the history
…ecution to that of the segment in the root file.

This would occur if ORCA/C remained in memory and was restarted after a previous execution, because the 'pc' value was not reinitialized. The ORCA linker seems to ignore the too-long segment length value, but ORCA/C should generate a correct value that actually corresponds to the length of the segment.
  • Loading branch information
sheumann committed Oct 22, 2017
1 parent a4bffe6 commit 41fb054
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Native.pas
Expand Up @@ -2021,6 +2021,7 @@ procedure InitFile {keepName: gsosOutStringPtr; keepFlag: integer; partial: bool
OpenObj(fname2);

{write the header}
InitNative;
Header(@'~_ROOT', $4000, 0);

{new desk accessory initialization}
Expand Down

0 comments on commit 41fb054

Please sign in to comment.