[patch ld]: Increase stack size to be 10 MB by default
Brian Dessent
brian@dessent.net
Sat Jun 7 20:21:00 GMT 2008
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
More information about the Binutils
mailing list