From 703e5658498222c3aa77e57fefb466d264abbe58 Mon Sep 17 00:00:00 2001 From: "Chang S. Bae" Date: Mon, 8 Oct 2018 18:49:57 -0700 Subject: [PATCH] macho: Add warning message in macho_output() Based-on-code-from: zenith432 Signed-off-by: Chang S. Bae --- output/outmacho.c | 3 +++ 1 file changed, 3 insertions(+) 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; }