Control symbol table of which to relocate symbols

Pass pointer to symbol table to relocate the symbols of in relocate_syms
This commit is contained in:
Thomas Preud'homme
2016-11-12 23:16:09 +08:00
parent c4bec037be
commit 097cf3aa5e
4 changed files with 6 additions and 6 deletions

View File

@ -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;