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 --- tccrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccrun.c') 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; -- cgit v1.3.1