diff --git a/linker/linker.c b/linker/linker.c index 78e5bea3..edea9be6 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -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++;