diff --git a/tccrun.c b/tccrun.c index 4bf709d6..02f207c9 100644 --- a/tccrun.c +++ b/tccrun.c @@ -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;