forked from Mirrors/tinycc
relocate_syms() should using !(nostdlib) for parameter "int do_resolve"
parent
704b602184
commit
4caa9a4cc7
2
tccrun.c
2
tccrun.c
|
@ -254,7 +254,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr, addr_t ptr_diff)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* relocate symbols */
|
/* relocate symbols */
|
||||||
relocate_syms(s1, s1->symtab, 1);
|
relocate_syms(s1, s1->symtab, !(s1->nostdlib));
|
||||||
if (s1->nb_errors)
|
if (s1->nb_errors)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue