* --stack in ld? (and gcc's --fstack-check?)
@ 2003-03-06 17:38 Dan Kegel
2003-03-06 19:34 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Dan Kegel @ 2003-03-06 17:38 UTC (permalink / raw)
To: binutils
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?
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: --stack in ld? (and gcc's --fstack-check?)
2003-03-06 17:38 --stack in ld? (and gcc's --fstack-check?) Dan Kegel
@ 2003-03-06 19:34 ` Ian Lance Taylor
2003-03-07 15:25 ` Dan Kegel
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2003-03-06 19:34 UTC (permalink / raw)
To: Dan Kegel; +Cc: binutils
Dan Kegel <dank@kegel.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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: --stack in ld? (and gcc's --fstack-check?)
2003-03-06 19:34 ` Ian Lance Taylor
@ 2003-03-07 15:25 ` Dan Kegel
0 siblings, 0 replies; 3+ messages in thread
From: Dan Kegel @ 2003-03-07 15:25 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: binutils
Ian Lance Taylor wrote:
> Dan Kegel <dank@kegel.com> writes:
>>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.
I *thought* it sounded kind of windows-ish. Thanks!
(I don't know if the man page could be improved to handle
the google mentality. Putting "windows only" next to
each such option might do it, but it'd be incredibly messy.)
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-07 15:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06 17:38 --stack in ld? (and gcc's --fstack-check?) Dan Kegel
2003-03-06 19:34 ` Ian Lance Taylor
2003-03-07 15:25 ` Dan Kegel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).