Date: Wed, 17 Oct 2012 03:03:39 +0200 From: boris brezillon <b.brezillon.musl@...il.com> To: musl@...ts.openwall.com Subject: Re: TLS (thread-local storage) support 2012/10/17 Rich Felker <dalias@...ifal.cx>: > On Wed, Oct 17, 2012 at 02:08:11AM +0200, boris brezillon wrote: >> >> I agree. This should be made optional. But if we don't compile libc >> >> with fsplit-stack (-fnosplit-stack). >> >> Each call to a libc func from an external func compiled with split >> >> stack may lead to a 64K stack chunk alloc. >> > >> > Where does this allocation take place from? There should simply be a >> > way to inhibit it. >> In the linker (gold linker). > > Well gold isn't running at runtime. I assume you mean it _arranges_ > for this allocation to take place somehow, and that's what I'm > wondering about whether there's a way to avoid. Sorry, this is done in __morestack_non_split (libgcc/config/i386/morestack.S). the linker replaces the __morestack call in the no_split_stack function's caller by __morestack_non_split. > > Rich
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.