From c00c897df738e12f86067c65be857fc29299e2a5 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 2 Sep 2008 12:55:35 -0700 Subject: [PATCH] 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 --- output/outcoff.c | 1 + 1 file changed, 1 insertion(+) 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 {