aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorgrischka <grischka>2017-12-12 17:33:37 +0100
committergrischka <grischka>2017-12-12 17:33:37 +0100
commit1a4d4b76e803a32db1168e66ad8f8b26c29c8ea0 (patch)
tree007fdd21ccfe4e47e8cf44662cff4751d6c7c3bc /tccrun.c
parent8490c54dbd756130962825adf32ab955137da8a4 (diff)
downloadtinycc-1a4d4b76e803a32db1168e66ad8f8b26c29c8ea0.tar.gz
tinycc-1a4d4b76e803a32db1168e66ad8f8b26c29c8ea0.tar.bz2
tccgen_begin/end_file
This is supposed to make compilation and linking with multiple source files (tcc f1.c f2.S ...) behave just the same as linking object files. tccgen.c:put_extern_sym2(): - use put_elf_sym to enter new symbols unconditionally tccelf.c: - save section state before compilation - disable symbol hashing during compilation - merge symbols and update relocations after compilation tccpe.c: - re-create s1->uw_sym for each compilation (because it may change)
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccrun.c b/tccrun.c
index 72b3994..20d72ce 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -188,7 +188,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr, addr_t ptr_diff)
pe_output_file(s1, NULL);
#else
tcc_add_runtime(s1);
- resolve_regular_syms();
+ resolve_common_syms(s1);
build_got_entries(s1);
#endif
if (s1->nb_errors)