Bug 86451 - ld does not recognize --stack option
ld does not recognize --stack option
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: binutils (Show other bugs)
8.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-22 04:18 EST by Andrei Gaponenko
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-03-22 04:27:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrei Gaponenko 2003-03-22 04:18:13 EST
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):
binutils-2.13.90.0.2-2

How reproducible:
Always

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-2.11.92.0.7-1.src.rpm (RH 6.1), and 
probably to at least all versions in between.
Comment 1 Jakub Jelinek 2003-03-22 04:27:32 EST
--stack is an PE and BeOS option only. On linux, you control the stack size
with ulimit -s (unless you use the /lib/libpthread.so.0 (not /lib/i686/libpthread.so.0)
linuxthreads implementation, which requires at most 2MB stacks).
Comment 2 Andrei Gaponenko 2003-03-22 04:34:44 EST
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.