diff --git a/src/link/assign.c b/src/link/assign.c index 9120d47b..ed549e31 100644 --- a/src/link/assign.c +++ b/src/link/assign.c @@ -366,14 +366,14 @@ void assign_AssignSections(void) if (!sections) err(1, "Failed to allocate memory for section assignment"); - nbSectionsToAssign = 0; - sect_ForEach(categorizeSection, NULL); - initFreeSpace(); /* Process linker script, if any */ processLinkerScript(); + nbSectionsToAssign = 0; + sect_ForEach(categorizeSection, NULL); + /** Place sections, starting with the most constrained **/ /* Specially process fully-constrained sections because of overlaying */