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

@ -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) {