summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-06 17:58:46 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-06 17:58:46 -0700
commit62de27552752d0793fb8d99fc3cc1e4bd588e663 (patch)
tree830a27d4ff94ca48d1e3663a88c92ce13cbc8e8d /output
parent931ce775cfcaec93f7c2df90d32023f2544373ed (diff)
downloadnasm-62de27552752d0793fb8d99fc3cc1e4bd588e663.tar.gz
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 <hpa@linux.intel.com>
Diffstat (limited to 'output')
-rw-r--r--output/outobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/output/outobj.c b/output/outobj.c
index cae02148..f6601709 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;
}