Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 17 Oct 2012 12:37:33 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: TLS (thread-local storage) support

* boris brezillon <b.brezillon.musl@...il.com> [2012-10-17 01:16:43 +0200]:
> > most functions in musl may be run before pthread_self_init
> > (it runs on demand when a pthread function is used)
> This can be done during dynamic linking process (by checking the split
> stack note).

i meant that you would need to annotate almost all musl
functions as no_split_stack because normally thread
pointer is not initialized
(but dalias commented that this might change)

the dynamic loader can only do the initialization for
dynamically linked executables

so it's easier to just not compile musl with -fsplit-stack

musl can easily give guarantees about its maximum stack
usage assuming there is a bound to function call overhead
and alignment overhead of auto variables etc

(but dalias already gave better explanation)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.