mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
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>
This commit is contained in:
parent
91fb6f1626
commit
c00c897df7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user