summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nasm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nasm.c b/nasm.c
index a938aaae..8c7e271a 100644
--- a/nasm.c
+++ b/nasm.c
@@ -1368,7 +1368,8 @@ static void assemble_file(char *fname, StrList **depend_ptr)
define_common(value, seg_alloc(), size,
special, ofmt, report_error);
} else if (pass0 == 2) {
- ofmt->symdef(value, 0L, 0L, 3, special);
+ if (special)
+ ofmt->symdef(value, 0L, 0L, 3, special);
}
break;
}