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>
This commit is contained in:
H. Peter Anvin 2016-02-11 20:29:34 -08:00
parent 5507ad585f
commit ecc9e0ecd7
2 changed files with 2 additions and 2 deletions

View File

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

2
nasm.c
View File

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