tcc_add_runtime() for a CONFIG_USE_LIBGCC case: reducing a complexity
This commit is contained in:
parent
cd4f3d962d
commit
6cbf4fb740
1 changed files with 2 additions and 5 deletions
7
tccelf.c
7
tccelf.c
|
|
@ -1588,12 +1588,9 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
|
||||||
#ifdef CONFIG_USE_LIBGCC
|
#ifdef CONFIG_USE_LIBGCC
|
||||||
if (!s1->static_link) {
|
if (!s1->static_link) {
|
||||||
tcc_add_file(s1, TCC_LIBGCC);
|
tcc_add_file(s1, TCC_LIBGCC);
|
||||||
tcc_add_support(s1, "libtcc1.a");
|
}
|
||||||
} else
|
|
||||||
tcc_add_support(s1, "libtcc1.a");
|
|
||||||
#else
|
|
||||||
tcc_add_support(s1, "libtcc1.a");
|
|
||||||
#endif
|
#endif
|
||||||
|
tcc_add_support(s1, "libtcc1.a");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* tcc_add_bcheck tries to relocate a call to __bound_init in _init so
|
/* tcc_add_bcheck tries to relocate a call to __bound_init in _init so
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue