summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-11 20:29:34 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-11 20:29:34 -0800
commitecc9e0ecd732c66918a880b8f225cc26b7cd83ba (patch)
tree7d73065066a42db3e4900e2a6b17b635edc6756e
parent5507ad585fa98ff81e84350eb3d94183714580c6 (diff)
downloadnasm-ecc9e0ecd732c66918a880b8f225cc26b7cd83ba.tar.gz
Set warning name to zext-reloc and fix the warning message
Adjustment to the warning about zero-extended relocations. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--assemble.c2
-rw-r--r--nasm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/assemble.c b/assemble.c
index 8382b89b..1d8c3c10 100644
--- a/assemble.c
+++ b/assemble.c
@@ -360,7 +360,7 @@ static void out(int64_t offset, int32_t segto, const void *data,
abits, outfmt->shortname);
} else {
errfunc(ERR_WARNING | ERR_WARN_ZEXTRELOC,
- "%d-bit unsigned relocation zeroq-padded from %d bits\n",
+ "%d-bit unsigned relocation zero-extended from %d bits\n",
abits, maxbits);
outfmt->output(segto, data, type, amax, segment, wrt);
size -= amax;
diff --git a/nasm.c b/nasm.c
index e48f0a99..bb62d175 100644
--- a/nasm.c
+++ b/nasm.c
@@ -168,7 +168,7 @@ static const struct warning {
{"lock", "lock prefix on unlockable instructions", true},
{"hle", "invalid hle prefixes", true},
{"bnd", "invalid bnd prefixes", true},
- {"zero-reloc", "relocation zero-extended to match output format", true},
+ {"zext-reloc", "relocation zero-extended to match output format", true},
};
static bool want_usage;