relocate_syms() should using !(nostdlib) for parameter "int do_resolve"

mob
wanjochan 2020-03-14 16:17:39 +08:00
parent 704b602184
commit 4caa9a4cc7
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr, addr_t ptr_diff)
}
/* relocate symbols */
relocate_syms(s1, s1->symtab, 1);
relocate_syms(s1, s1->symtab, !(s1->nostdlib));
if (s1->nb_errors)
return -1;