This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc stack-smashing protector (for gcc-ss-20001101)
- To: Hiroaki Etoh <etoh at trl dot ibm dot co dot jp>
- Subject: Re: gcc stack-smashing protector (for gcc-ss-20001101)
- From: Geoff Keating <geoffk at geoffk dot com>
- Date: 03 Nov 2000 10:59:12 -0800
- CC: gcc-patches at gcc dot gnu dot org
- References: <20001024184333Z.etoh@trl.ibm.com> <20001103103741F.etoh@trl.ibm.com>
Hiroaki Etoh <etoh@trl.ibm.co.jp> writes:
> This patch introduces -fstack-protector option, which is a stack-smashing
> protection mechanism to the latest snapshot (gcc-ss-20001101).
> This patch and new files (protector.h and protector.c) are bootstraped
> and tested on i686-pc-linux-gnu and powerpc-ibm-aix4.4.0.
This seems to be a large and complex patch for a feature of limited
usefulness which is already implemented by gcc in a more general form
(using the full bounds-checking implementation).
Could you describe in more detail how this was designed, in particular
what alternatives were considered?
It might also be helpful if you could submit a patch that just
implements the basic canary-word part of the patch, so that we can get
an idea of how much of the changes are basic features and how much are
additional refinement.
--
- Geoffrey Keating <geoffk@geoffk.org>