Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2012 03:29:47 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232580 - head/lib/csu/mips
Message-ID:  <201203060329.q263TlLn017594@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Tue Mar  6 03:29:46 2012
New Revision: 232580
URL: http://svn.freebsd.org/changeset/base/232580

Log:
  - Remove NOSHARED parts since it seems to be no-op
  - Call _init_tls for statically linked binaries

Modified:
  head/lib/csu/mips/crt1.c

Modified: head/lib/csu/mips/crt1.c
==============================================================================
--- head/lib/csu/mips/crt1.c	Tue Mar  6 03:27:58 2012	(r232579)
+++ head/lib/csu/mips/crt1.c	Tue Mar  6 03:29:46 2012	(r232580)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203060329.q263TlLn017594>