From 097cf3aa5ee370bab50d6d15cef9b0af55a1a3a2 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sat, 12 Nov 2016 23:16:09 +0800 Subject: Control symbol table of which to relocate symbols Pass pointer to symbol table to relocate the symbols of in relocate_syms --- tccpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccpe.c') 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) { -- cgit v1.3.1