aboutsummaryrefslogtreecommitdiff
path: root/tccpe.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 /tccpe.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 'tccpe.c')
-rw-r--r--tccpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccpe.c b/tccpe.c
index 49e983d..e2101bb 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -1872,7 +1872,7 @@ ST_FUNC int pe_output_file(TCCState *s1, const char *filename)
;
else if (filename) {
pe_assign_addresses(&pe);
- relocate_syms(s1, 0);
+ relocate_syms(s1, s1->symtab, 0);
for (i = 1; i < s1->nb_sections; ++i) {
Section *s = s1->sections[i];
if (s->reloc) {