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
This commit is contained in:
grischka
2009-12-19 19:12:33 +01:00
parent ab4a4ab25e
commit b5e2238483
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}