Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 86451 - ld does not recognize --stack option
Summary: ld does not recognize --stack option
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: binutils
Version: 8.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2003-03-22 09:18 UTC by Andrei Gaponenko
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-03-22 09:27:32 UTC

Attachments (Terms of Use)

Description Andrei Gaponenko 2003-03-22 09:18:13 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
Info documentation coming with the binutils package describes
`--stack RESERVE' and `--stack RESERVE,COMMIT' options of ld.
However the linker does not recognize them. What's the way to 
request a bigger stack size? 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. /usr/bin/ld --stack 10000000 ttt.o -o ttt

Actual Results:  /usr/bin/ld: unrecognized option '--stack'
/usr/bin/ld: use the --help option for usage information

Expected Results:  producing an executable with the requested stack size.

Additional info:

The same applies to binutils- (RH 6.1), and 
probably to at least all versions in between.

Comment 1 Jakub Jelinek 2003-03-22 09:27:32 UTC
--stack is an PE and BeOS option only. On linux, you control the stack size
with ulimit -s (unless you use the /lib/ (not /lib/i686/
linuxthreads implementation, which requires at most 2MB stacks).

Comment 2 Andrei Gaponenko 2003-03-22 09:34:44 UTC
Thanks for the explanation.  
Then the --stack option should be described in the "machine dependent features"
section, not in "invocation|options" of the texinfo manual.

Note You need to log in before you can comment on or make changes to this bug.