summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-02 12:55:35 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-02 12:55:35 -0700
commitc00c897df738e12f86067c65be857fc29299e2a5 (patch)
tree5d52812d13616adad2436d1d1649b3a465dcdaa1
parent91fb6f16264ba3b2cde01b0dc35e672e024d4d28 (diff)
downloadnasm-c00c897df738e12f86067c65be857fc29299e2a5.tar.gz
outcoff: default output symbols to T_NULL
We would leave the output symbol type uninitialized. Explicitly initialize it to zero (T_NULL, meaning no symbol type information), since that's what was effectively done. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--output/outcoff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/output/outcoff.c b/output/outcoff.c
index d539900d..308dc774 100644
--- a/output/outcoff.c
+++ b/output/outcoff.c
@@ -410,6 +410,7 @@ static void coff_deflabel(char *name, int32_t segment, int64_t offset,
if (pos == -1)
strcpy(sym->name, name);
sym->is_global = !!is_global;
+ sym->type = 0; /* Default to T_NULL (no type) */
if (segment == NO_SEG)
sym->section = -1; /* absolute symbol */
else {