summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-12 18:13:47 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-12 18:13:47 -0800
commitfef75c265a2dafb6482ffd4078f74f2a66fa2535 (patch)
treed0413fcc1a72ee51aaecd3f99b9361678dbc9f07 /output
parent8e08fb6da7bf1ac50b7c960c5b13c3bed7535b3d (diff)
downloadnasm-fef75c265a2dafb6482ffd4078f74f2a66fa2535.tar.gz
warnings: Make WARN_ constants consistent with -w options
Not only does this make it consistent, but allows for automation. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'output')
-rw-r--r--output/outelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/output/outelf.c b/output/outelf.c
index 2ac8eb44..8270ba0b 100644
--- a/output/outelf.c
+++ b/output/outelf.c
@@ -919,7 +919,7 @@ static void elf32_out(int32_t segto, const void *data,
}
if (gnu16) {
- nasm_warnf(WARN_GNUELF, "8- or 16-bit relocations "
+ nasm_warnf(WARN_GNU_ELF_EXTENSIONS, "8- or 16-bit relocations "
"in ELF32 is a GNU extension");
} else if (asize != 4 && segment != NO_SEG) {
nasm_nonfatal("Unsupported non-32-bit ELF relocation");
@@ -945,7 +945,7 @@ rel12adr:
" segment base references");
} else {
if (wrt == NO_SEG) {
- nasm_warnf(WARN_GNUELF, "8- or 16-bit relocations "
+ nasm_warnf(WARN_GNU_ELF_EXTENSIONS, "8- or 16-bit relocations "
"in ELF is a GNU extension");
elf_add_reloc(s, segment, 0, reltype);
} else {