This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch ld]: Increase stack size to be 10 MB by default
- From: Brian Dessent <brian at dessent dot net>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Sat, 07 Jun 2008 10:54:20 -0700
- Subject: Re: [patch ld]: Increase stack size to be 10 MB by default
- References: <90baa01f0806070541l2072403btc480ad1cc6c20369@mail.gmail.com>
- Reply-to: Binutils <binutils at sourceware dot org>
Kai Tietz wrote:
> * emultempl/pep.em (init): Reserved stack size
> defaults to 10 MB.
This used to default to 32MB, but it was reduced to 2MB because of the
concern that in multi-threaded apps every thread gets a stack of this
size by default:
<http://sourceware.org/ml/binutils/2001-06/msg00054.html>. I understand
that the problem is that some gcc files or testcases require a larger
stack, but shouldn't that be handled in gcc and not by changing the
defaults of the linker? I just verified that the Microsoft Visual
Studio 2005 linker does default to 1MB StackReserve as stated in that
message.
Brian