[patch ld]: Increase stack size to be 10 MB by default

Brian Dessent brian@dessent.net
Sun Jun 8 16:25:00 GMT 2008


Kai Tietz wrote:

> The problem I see is, that for default of ld for 32-bit 2MB stack are
> ok, but for 64-bit a stack word is double of the 32-bit version. So I
> mean may we should increase the stack size at least to 4MB for
> default. A multi-thread application can lower the stack space reserved

In that case the 64 bit port should have a different default than the 32
bit port.  But I also checked the Microsoft x64 toolchain and it too
uses a default StackReserve of 1MB.  If it works for them I don't see
why the GNU toolchain would need a value ten times larger.

Brian



More information about the Binutils mailing list