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>
This commit is contained in:
H. Peter Anvin 2010-05-06 17:58:46 -07:00
parent 931ce775cf
commit 62de275527

View File

@ -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;
}