Blackfin patch: stack checking

Bernd Schmidt bernds_cb1@t-online.de
Tue Nov 21 10:32:00 GMT 2006


When your system doesn't have virtual memory, stack checking is a pretty
important issue.  We currently support -fstack-limit-symbol for flat
binaries, but not for FD-PIC ELF ones, and it doesn't work for threaded
programs either.
This implements an additional method that uses a word in a known memory
location to hold the lowest stack address.  This is about equivalent to
using a register, but slightly more convenient in that you can link code
that isn't compiled with stack checking and doesn't need to be aware of
having to keep that reg untouched.

Committed as 119049.  Looking at the patch now it seems my invoke.texi
patch from yesterday didn't get committed last time; it's included in
this commit.


Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stkchk.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061121/00029974/attachment.ksh>


More information about the Gcc-patches mailing list