Make some RGBLINK errors non-fatal

This commit is contained in:
ISSOtm
2020-04-06 00:45:22 +02:00
parent ffb199a26a
commit 82e0e4ffaf
8 changed files with 111 additions and 59 deletions

View File

@@ -80,15 +80,15 @@ static void processLinkerScript(void)
/* Check if this doesn't conflict with what the code says */
if (section->isBankFixed && placement->bank != section->bank)
errx(1, "Linker script contradicts \"%s\"'s bank placement",
section->name);
error("Linker script contradicts \"%s\"'s bank placement",
section->name);
if (section->isAddressFixed && placement->org != section->org)
errx(1, "Linker script contradicts \"%s\"'s address placement",
section->name);
error("Linker script contradicts \"%s\"'s address placement",
section->name);
if (section->isAlignFixed
&& (placement->org & section->alignMask) != 0)
errx(1, "Linker script contradicts \"%s\"'s alignment",
section->name);
error("Linker script contradicts \"%s\"'s alignment",
section->name);
section->isAddressFixed = true;
section->org = placement->org;