diff options
Diffstat (limited to 'lib/csu/mips/crt1.c')
-rw-r--r-- | lib/csu/mips/crt1.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/csu/mips/crt1.c b/lib/csu/mips/crt1.c index 5fd7b8a..fa16748 100644 --- a/lib/csu/mips/crt1.c +++ b/lib/csu/mips/crt1.c @@ -47,10 +47,8 @@ __FBSDID("$FreeBSD$"); struct Struct_Obj_Entry; struct ps_strings; -#ifndef NOSHARED extern int _DYNAMIC; #pragma weak _DYNAMIC -#endif extern void _init(void); extern void _fini(void); @@ -91,10 +89,11 @@ __start(char **ap, __progname = s + 1; } -#ifndef NOSHARED if (&_DYNAMIC != NULL) atexit(cleanup); -#endif + else + _init_tls(); + #ifdef GCRT atexit(_mcleanup); #endif |