diff options
author | Chang S. Bae <changseok.bae@gmail.com> | 2018-10-08 18:49:57 -0700 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-10-09 10:23:13 +0300 |
commit | 703e5658498222c3aa77e57fefb466d264abbe58 (patch) | |
tree | 844fe3b08fc832c0f7ed99c80cf74a620f325948 | |
parent | 7fcf32ba3105f4eee9ac08ac21e5116835639fc2 (diff) | |
download | nasm-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.c | 3 |
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; } |