master 7113255b840: ; * src/pdumper.c (dump_reloc_set_offset): Improve error text (bug#44531).

Eli Zaretskii <[email protected]> Thu, 16 Jul 2026 02:18:37 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit 7113255b8401b446a431296ea2d0bd6a590fa3e0
Author: Eli Zaretskii <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    ; * src/pdumper.c (dump_reloc_set_offset): Improve error text (bug#44531).
---
 src/pdumper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/pdumper.c b/src/pdumper.c
index 9a018fcd60f..755b27c8773 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -313,7 +313,8 @@ dump_reloc_set_offset (struct dump_reloc *reloc, dump_off offset)
   eassume (offset >= 0);
   reloc->raw_offset = offset / DUMP_RELOCATION_ALIGNMENT;
   if (dump_reloc_get_offset (*reloc) != offset)
-    error ("dump relocation out of range");
+    error ("dump relocation not an integral multiple of %d: %d",
+	   DUMP_RELOCATION_ALIGNMENT, offset);
 }
 
 void