mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-11 17:10:45 +08:00
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:
parent
931ce775cf
commit
62de275527
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user