Fix use-after-free with include in linker scripts

Fixes #510, and further proves that you *really* should not entrust memory
ownership management to humans :P
This commit is contained in:
ISSOtm
2020-04-13 02:36:07 +02:00
parent 023a3c037f
commit 2220f19fa7
3 changed files with 11 additions and 6 deletions

View File

@@ -18,7 +18,7 @@
/* Variables related to CLI options */
extern bool isDmgMode;
extern char const *linkerScriptName;
extern char *linkerScriptName;
extern char const *mapFileName;
extern char const *symFileName;
extern char const *overlayFileName;