From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2117 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: TLS (thread-local storage) support Date: Wed, 17 Oct 2012 00:09:22 +0200 Message-ID: <20121016220922.GO24157@port70.net> References: <20121004211332.GA12874@brightrain.aerifal.cx> <20121004223631.GL254@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1350425375 19942 80.91.229.3 (16 Oct 2012 22:09:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 22:09:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2118-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 17 00:09:43 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TOFKX-0004kT-OH for gllmg-musl@plane.gmane.org; Wed, 17 Oct 2012 00:09:41 +0200 Original-Received: (qmail 27846 invoked by uid 550); 16 Oct 2012 22:09:34 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27838 invoked from network); 16 Oct 2012 22:09:34 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2117 Archived-At: * boris brezillon [2012-10-16 23:47:52 +0200]: > > There's at least one thing (maybe more) missing for go support with > > musl : gcc 'split-stack' support (see http://blog.nella.org/?p=849 and > > http://gcc.gnu.org/wiki/SplitStacks). > > why does go need support from libc? it has its own runtime and libraries on raw syscalls > 4) Compile musl with '-fsplit-stack' and add no_split_stack attribute > to appropriate functions (at least all functions called before > pthread_self_init because %gs or %fs register is unusable before this > call). > what does a no_split_stack function do when it runs out of stack? most functions in musl may be run before pthread_self_init (it runs on demand when a pthread function is used) what's the use of split stack if some functions may not work with it?