From 81047afb4bf5e73b7f9a388268124241e06b24bd Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 13 Oct 2019 11:50:51 +0200 Subject: [PATCH] Rework "overflow" error message --- src/link/script.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/link/script.c b/src/link/script.c index c9e2bc34..3a854f06 100644 --- a/src/link/script.c +++ b/src/link/script.c @@ -370,11 +370,11 @@ struct SectionPlacement *script_NextSection(void) if (type != SECTTYPE_INVALID) { if (curaddr[type][bankID] > endaddr(type) + 1) - errx(1, "%s(%u): PC overflowed ($%x > $%x)", - linkerScriptName, lineNo, + errx(1, "%s(%u): Sections would extend past the end of %s ($%04hx > $%04hx)", + linkerScriptName, lineNo, typeNames[type], curaddr[type][bankID], endaddr(type)); if (curaddr[type][bankID] < startaddr[type]) - errx(1, "%s(%u): PC underflowed ($%x < $%x)", + errx(1, "%s(%u): PC underflowed ($%04hx < $%04hx)", linkerScriptName, lineNo, curaddr[type][bankID], startaddr[type]); }