From 50804d661ab53a5a89c1750d3168eb4580cda8a4 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Fri, 11 Oct 2019 19:03:03 +0200 Subject: [PATCH] Fix linkerscript not updating section categorization --- src/link/assign.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */