diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-01-11 12:27:02 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-01-11 12:27:02 -0800 |
commit | 38ddb19977c109ae18d69699d177c7d34c9d0455 (patch) | |
tree | 55121449214287e2d51d29b70c41ea2dd5f4b056 /output | |
parent | ef4f23d76a6ce89c93b40150f48ba6803d42341e (diff) | |
download | nasm-38ddb19977c109ae18d69699d177c7d34c9d0455.tar.gz |
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) <hpa@zytor.com>
Diffstat (limited to 'output')
-rw-r--r-- | output/outaout.c | 2 | ||||
-rw-r--r-- | output/outas86.c | 2 | ||||
-rw-r--r-- | output/outbin.c | 2 | ||||
-rw-r--r-- | output/outcoff.c | 2 | ||||
-rw-r--r-- | output/outelf.c | 6 |
5 files changed, 7 insertions, 7 deletions
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 |