Check if sections referenced in linker script exist

This commit is contained in:
ISSOtm
2020-02-12 15:27:07 +01:00
parent d5fe377c11
commit 18c47843f1

View File

@@ -419,6 +419,10 @@ struct SectionPlacement *script_NextSection(void)
section.section =
sect_GetSection(token->attr.string);
if (!section.section)
errx(1, "%s(%u): Unknown section \"%s\"",
linkerScriptName, lineNo,
token->attr.string);
section.org = curaddr[type][bankID];
section.bank = bank;