diff options
| author | grischka <grischka> | 2009-12-19 19:12:33 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2009-12-19 22:16:18 +0100 |
| commit | b5e22384836d5c09602d5cf6fe990485299dfbf0 (patch) | |
| tree | 051658683f429a7ffb6adad0b3ad8e84c1308bda /libtcc.c | |
| parent | ab4a4ab25e474dca8a84a8c43f923ba750b0b9c9 (diff) | |
| download | tinycc-b5e22384836d5c09602d5cf6fe990485299dfbf0.tar.gz tinycc-b5e22384836d5c09602d5cf6fe990485299dfbf0.tar.bz2 | |
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
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
