From 0b1d01792d0b370e79fcf6c5fef2bef6161c8097 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Mon, 12 Oct 2020 00:04:08 +0200 Subject: [PATCH] Indicate cur offset in linkerscript "backwards org" message --- src/link/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link/script.c b/src/link/script.c index 75c4f50a..e3f180ee 100644 --- a/src/link/script.c +++ b/src/link/script.c @@ -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; }