Fix some multi-file corner cases with asm
commit8490c54dbd756130962825adf32ab955137da8a4
authorMichael Matz <matz@suse.de>
Sun, 10 Dec 2017 05:18:27 +0000 (10 06:18 +0100)
committerMichael Matz <matz@suse.de>
Sun, 10 Dec 2017 05:50:58 +0000 (10 06:50 +0100)
treef86e81108aca1053fc810f6fdc77c62ef547a976
parent3ae1a2af1c10f9b64631d8e18d948498e14b283d
Fix some multi-file corner cases with asm

for this we have to create also asm symbols as VT_STATIC initially
except if there's an indication that it should be global (.globl
or undefined at end of unit).  For this to work we need to
be able to globalize symbols after they were local and enter them
into the ELF hash tables, and also adjust the symbols that were
potentially already used in relocs when they were still local.

The easiest is to do a proper symbol resolution step also in multi-file
mode, for regular symbols (the non-dynamic ones, i.e. not from shared
libs).
tcc.h
tccasm.c
tccelf.c
tccpe.c
tccrun.c