- Remove NOSHARED parts since it seems to be no-op
- Call _init_tls for statically linked binaries
This commit is contained in:
parent
34e3f7e717
commit
dd2f96800b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232580
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user