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>
This commit is contained in:
Chang S. Bae 2018-10-08 18:49:57 -07:00 committed by Cyrill Gorcunov
parent 7fcf32ba31
commit 703e565849

View File

@ -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;
}