mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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 =
|
section.section =
|
||||||
sect_GetSection(token->attr.string);
|
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.org = curaddr[type][bankID];
|
||||||
section.bank = bank;
|
section.bank = bank;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user