Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jul 29, 2018
1 parent 8f99d8e commit 8bd0ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool/linker/lnkdos16.c
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,9 @@ int main(int argc,char **argv) {
ro = frag->offset;
assert((ro + frag->fragment_length) <= sg->segment_length);

po = ro + (exe_relocation_table_count * 2);
assert((po + sizeof(comrel_entry_point)) <= sg->segment_length);

sym = find_link_symbol("__COMREL_RELOC_TABLE");
if (sym != NULL) return 1;
sym = new_link_symbol("__COMREL_RELOC_TABLE");
Expand All @@ -1946,9 +1949,6 @@ int main(int argc,char **argv) {
sym->fragment = sg->fragments_count-1;
sym->offset = ro;

po = ro + (exe_relocation_table_count * 2);
assert((po + sizeof(comrel_entry_point)) <= sg->segment_length);

sym = find_link_symbol("__COMREL_RELOC_ENTRY");
if (sym != NULL) return 1;
sym = new_link_symbol("__COMREL_RELOC_ENTRY");
Expand Down

0 comments on commit 8bd0ce7

Please sign in to comment.