Add find_c_sym and friends
commit71b0634168099422ff522cbcc9da5b5b111d7329
authorMichael Matz <matz@suse.de>
Fri, 22 May 2020 02:28:02 +0000 (22 04:28 +0200)
committerMichael Matz <matz@suse.de>
Sat, 20 Jun 2020 20:12:02 +0000 (20 22:12 +0200)
treea04170185f33c5011a64a10a150bf4e9fa260133
parentcc11750bda93c143cb460b52807a14e18539163a
Add find_c_sym and friends

for handling leading underscores when looking up symbols.
Necessary on MacOS, as there C symbols have a '_' prepended.
get_sym_addr (replacing get_elf_sym_addr) gets an argument to
specify if bare/raw/ELF symbols should be looked up or if decorated
C symbols should be looked up.  That reflects into tcc_get_symbol.
tcc_add_symbol is _not_ yet changed, but probably should be.
tcc.h
tccelf.c
tccmacho.c
tccrun.c