projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
931ce77
)
outobj: update error message
author
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 7 May 2010 00:58:46 +0000
(17:58 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 7 May 2010 00:58:46 +0000
(17:58 -0700)
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>
output/outobj.c
patch
|
blob
|
history
diff --git
a/output/outobj.c
b/output/outobj.c
index
cae0214
..
f660170
100644
(file)
--- 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;
}