aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2016-11-12 23:16:09 +0800
committerThomas Preud'homme <robotux@celest.fr>2016-12-03 17:26:51 +0000
commit097cf3aa5ee370bab50d6d15cef9b0af55a1a3a2 (patch)
tree3bf02360980492571e777b334dc1e9a8bdd61969 /tccrun.c
parentc4bec037be0da6bfd19484c34cc19e358cbb6822 (diff)
downloadtinycc-097cf3aa5ee370bab50d6d15cef9b0af55a1a3a2.tar.gz
tinycc-097cf3aa5ee370bab50d6d15cef9b0af55a1a3a2.tar.bz2
Control symbol table of which to relocate symbols
Pass pointer to symbol table to relocate the symbols of in relocate_syms
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 37e9303..7eb47fc 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -211,7 +211,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr)
}
/* relocate symbols */
- relocate_syms(s1, 1);
+ relocate_syms(s1, s1->symtab, 1);
if (s1->nb_errors)
return -1;