mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Check if sections referenced in linker script exist
This commit is contained in:
1 parent
d5fe377c11
commit
18c47843f1
1 file changed
+4
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user