mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
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:
parent
5507ad585f
commit
ecc9e0ecd7
@ -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
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user