tccasm: Unify C and asm symbol table
commit9e0d23cc47359149a39eafffdbb133963980b6ed
authorMichael Matz <matz@suse.de>
Mon, 27 Nov 2017 03:03:03 +0000 (27 04:03 +0100)
committerMichael Matz <matz@suse.de>
Mon, 27 Nov 2017 03:59:29 +0000 (27 04:59 +0100)
tree84ca4bd202768b2c71d3ed4f09abcd3e1a729e7d
parent3494e5de3a03d021845666f55340d35af44e3bfc
tccasm: Unify C and asm symbol table

This makes the asm symbols use the same members as the C symbols
for global decls, e.g. using the ELF symbol to hold offset and
section.  That allows us to use only one symbol table for C and
asm symbols and to get rid of hacks to synch between them.

We still need some special handling for symbols that come purely
from asm sources.
i386-asm.c
tcc.h
tccasm.c
tccelf.c
tccgen.c
tccpp.c
tests/asm-c-connect-1.c
tests/asm-c-connect-2.c