From b5e22384836d5c09602d5cf6fe990485299dfbf0 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 19:12:33 +0100 Subject: tccasm: make VT_VOID symbols ST_NOTYPE, elf-wise This was confusing objdump such that it did not print disassembly with -d. Also, put filename as with C compilation --- libtcc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libtcc.c') 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; } -- cgit v1.3.1