This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: --stack in ld? (and gcc's --fstack-check?)
- From: Ian Lance Taylor <ian at airs dot com>
- To: Dan Kegel <dank at kegel dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 06 Mar 2003 11:34:32 -0800
- Subject: Re: --stack in ld? (and gcc's --fstack-check?)
- References: <3E6787D1.8060001@kegel.com>
Dan Kegel <dank at kegel dot com> writes:
> I'm trying to use --fstack-check in gcc, and from what I can tell,
> programs compiled with --fstack-check generate a signal when
> they try to extend the stack. Soooo, I read the ld man page,
> and found a nifty --stack option to set both the reserved and
> the committed stack size. That should allow me to control
> the size of the stack beyond which I get a signal.
>
> Only my ld doesn't seem to recognize --stack. The version I'm using is
> GNU ld version 2.13.90.0.2 20020802
> (the one that comes with red hat 8).
>
> Is --stack obsolete?
If you look more closely, you'll see that --stack is documented in a
section entitled ``options specific to i386 PE targets.'' That is, it
is only supported on Windows.
Ian