diff options
author | gonzo <gonzo@FreeBSD.org> | 2012-03-06 03:29:46 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2012-03-06 03:29:46 +0000 |
commit | 550ac78f0e50c0230e845dd98c2287a983b90acc (patch) | |
tree | 185384280ac4244b481f85cde0fd8af7abd0e4b0 /lib | |
parent | 7d20e4f65e1a5975b1f51dec4c1dd14f924e50e9 (diff) | |
download | FreeBSD-src-550ac78f0e50c0230e845dd98c2287a983b90acc.zip FreeBSD-src-550ac78f0e50c0230e845dd98c2287a983b90acc.tar.gz |
- Remove NOSHARED parts since it seems to be no-op
- Call _init_tls for statically linked binaries
Diffstat (limited to 'lib')
-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 |