ref: 50804d661ab53a5a89c1750d3168eb4580cda8a4
parent: 9b895e8a0ab5197c66bc1c58317331391c802954
author: ISSOtm <[email protected]>
date: Fri Oct 11 15:03:03 EDT 2019
Fix linkerscript not updating section categorization
--- a/src/link/assign.c
+++ b/src/link/assign.c
@@ -366,13 +366,13 @@
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 **/