aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index 54184e2..9a04a9e 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -780,6 +780,8 @@ static void put_extern_sym2(Sym *sym, Section *section,
if (FUNC_CALL(attr) == FUNC_STDCALL)
other |= 2;
#endif
+ } else if ((sym->type.t & VT_BTYPE) == VT_VOID) {
+ sym_type = STT_NOTYPE;
} else {
sym_type = STT_OBJECT;
}