From 62de27552752d0793fb8d99fc3cc1e4bd588e663 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 6 May 2010 17:58:46 -0700 Subject: [PATCH] outobj: update error message The possible sizes we can encounter are 1, 2, 4, 8... make sure we get a proper error message. Signed-off-by: H. Peter Anvin --- output/outobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/outobj.c b/output/outobj.c index cae0214..f660170 100644 --- a/output/outobj.c +++ b/output/outobj.c @@ -1163,9 +1163,9 @@ static void obj_write_fixup(ObjRecord * orp, int bytes, struct External *e = NULL; ObjRecord *forp; - if (bytes == 1) { + if (bytes != 2 && bytes != 4) { nasm_error(ERR_NONFATAL, "`obj' output driver does not support" - " one-byte relocations"); + " %d-bit relocations", bytes << 3); return; } -- 2.7.4