mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Check if sections referenced in linker script exist
This commit is contained in:
@@ -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