summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChang S. Bae <changseok.bae@gmail.com>2018-10-08 18:49:57 -0700
committerCyrill Gorcunov <gorcunov@gmail.com>2018-10-09 10:23:13 +0300
commit703e5658498222c3aa77e57fefb466d264abbe58 (patch)
tree844fe3b08fc832c0f7ed99c80cf74a620f325948
parent7fcf32ba3105f4eee9ac08ac21e5116835639fc2 (diff)
downloadnasm-703e5658498222c3aa77e57fefb466d264abbe58.tar.gz
macho: Add warning message in macho_output()
Based-on-code-from: zenith432 <zenith432@users.sourceforge.net> Signed-off-by: Chang S. Bae <changseok.bae@gmail.com>
-rw-r--r--output/outmacho.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/output/outmacho.c b/output/outmacho.c
index 4ec85690..e78623e3 100644
--- a/output/outmacho.c
+++ b/output/outmacho.c
@@ -665,6 +665,9 @@ static void macho_output(int32_t secto, const void *data,
if (is_bss && type != OUT_RESERVE) {
nasm_error(ERR_WARNING, "attempt to initialize memory in "
"BSS section: ignored");
+ /* FIXME */
+ nasm_error(ERR_WARNING, "section size may be negative"
+ "with address symbols");
s->size += realsize(type, size);
return;
}