Indicate cur offset in linkerscript "backwards org" message

This commit is contained in:
ISSOtm
2020-10-12 00:04:08 +02:00
parent 01637768cf
commit 0b1d01792d

View File

@@ -331,8 +331,8 @@ static void processCommand(enum LinkerScriptCommand command, uint16_t arg,
}
if (arg < *pc)
errx(1, "%s(%" PRIu32 "): `%s` cannot be used to go backwards",
linkerScriptName, lineNo, commands[command]);
errx(1, "%s(%" PRIu32 "): `%s` cannot be used to go backwards (currently at $%x)",
linkerScriptName, lineNo, commands[command], *pc);
*pc = arg;
}