linker: close main object after loading

This commit is contained in:
K. Lange 2019-12-15 15:51:13 +09:00
parent c2dc6fef5b
commit ccb2f8b695

View File

@ -777,6 +777,7 @@ nope:
/* Relocate the main object */
TRACE_LD("Relocating main object");
object_relocate(main_obj);
fclose(main_obj->file);
TRACE_LD("Placing heap at end");
while (end_addr & 0xFFF) {
end_addr++;