From 38ddb19977c109ae18d69699d177c7d34c9d0455 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Fri, 11 Jan 2019 12:27:02 -0800 Subject: Warnings: move zeroing reserved space to a separate warning class Zeroing reserved space in a progbits section really should be a separate warning class, so it can be controlled independently. Signed-off-by: H. Peter Anvin (Intel) --- output/outaout.c | 2 +- output/outas86.c | 2 +- output/outbin.c | 2 +- output/outcoff.c | 2 +- output/outelf.c | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'output') diff --git a/output/outaout.c b/output/outaout.c index 53a5611c..8821d7fe 100644 --- a/output/outaout.c +++ b/output/outaout.c @@ -603,7 +603,7 @@ static void aout_out(int32_t segto, const void *data, if (type == OUT_RESERVE) { if (s) { - nasm_warn(WARN_OTHER, "uninitialized space declared in" + nasm_warn(WARN_ZEROING, "uninitialized space declared in" " %s section: zeroing", (segto == stext.index ? "code" : "data")); aout_sect_write(s, NULL, size); diff --git a/output/outas86.c b/output/outas86.c index fc283f4a..3b44aea9 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -314,7 +314,7 @@ static void as86_out(int32_t segto, const void *data, if (type == OUT_RESERVE) { if (s) { - nasm_warn(WARN_OTHER, "uninitialized space declared in" + nasm_warn(WARN_ZEROING, "uninitialized space declared in" " %s section: zeroing", (segto == stext.index ? "code" : "data")); as86_sect_write(s, NULL, size); diff --git a/output/outbin.c b/output/outbin.c index 148a1fdf..9983cd33 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -783,7 +783,7 @@ static void bin_out(int32_t segto, const void *data, case OUT_RESERVE: if (s->flags & TYPE_PROGBITS) { - nasm_warn(WARN_OTHER, "uninitialized space declared in" + nasm_warn(WARN_ZEROING, "uninitialized space declared in" " %s section: zeroing", s->name); saa_wbytes(s->contents, NULL, size); } diff --git a/output/outcoff.c b/output/outcoff.c index da563ca3..67bd3ce5 100644 --- a/output/outcoff.c +++ b/output/outcoff.c @@ -606,7 +606,7 @@ static void coff_out(int32_t segto, const void *data, if (type == OUT_RESERVE) { if (s->data) { - nasm_warn(WARN_OTHER, "uninitialised space declared in" + nasm_warn(WARN_ZEROING, "uninitialised space declared in" " non-BSS section `%s': zeroing", s->name); coff_sect_write(s, NULL, size); } else diff --git a/output/outelf.c b/output/outelf.c index bfbb5a8b..bacecbc6 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -828,7 +828,7 @@ static void elf32_out(int32_t segto, const void *data, switch (type) { case OUT_RESERVE: if (s->type == SHT_PROGBITS) { - nasm_warn(WARN_OTHER, "uninitialized space declared in" + nasm_warn(WARN_ZEROING, "uninitialized space declared in" " non-BSS section `%s': zeroing", s->name); elf_sect_write(s, NULL, size); } else @@ -1039,7 +1039,7 @@ static void elf64_out(int32_t segto, const void *data, switch (type) { case OUT_RESERVE: if (s->type == SHT_PROGBITS) { - nasm_warn(WARN_OTHER, "uninitialized space declared in" + nasm_warn(WARN_ZEROING, "uninitialized space declared in" " non-BSS section `%s': zeroing", s->name); elf_sect_write(s, NULL, size); } else @@ -1317,7 +1317,7 @@ static void elfx32_out(int32_t segto, const void *data, switch (type) { case OUT_RESERVE: if (s->type == SHT_PROGBITS) { - nasm_warn(WARN_OTHER, "uninitialized space declared in" + nasm_warn(WARN_ZEROING, "uninitialized space declared in" " non-BSS section `%s': zeroing", s->name); elf_sect_write(s, NULL, size); } else -- cgit v1.2.1