Fix linkerscript not updating section categorization

This commit is contained in:
ISSOtm
2019-10-11 19:03:03 +02:00
parent 9b895e8a0a
commit 50804d661a

View File

@@ -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 */