From d3328406a2d2baf1365e1a9f8503c31f1f725384 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 2 Jan 2020 14:06:40 +0100 Subject: [PATCH] Improve `jr` out-of-reach error message --- src/link/patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/patch.c b/src/link/patch.c index 6e5e6daf..7856e947 100644 --- a/src/link/patch.c +++ b/src/link/patch.c @@ -306,7 +306,7 @@ static void applyPatches(struct Section *section, void *arg) int16_t offset = value - address; if (offset < -128 || offset > 127) - errx(1, "%s(%d): jr target out of reach (%d)", + errx(1, "%s(%d): jr target out of reach (expected -129 < %d < 128)", patch->fileName, patch->lineNo, offset); section->data[patch->offset] = offset & 0xFF; } else {