diff options
author | Tamar Christina <tamar.christina@arm.com> | 2018-10-01 13:02:21 +0000 |
---|---|---|
committer | Tamar Christina <tnfchris@gcc.gnu.org> | 2018-10-01 13:02:21 +0000 |
commit | 630b1e3a187dc843958e8966345da6191226b8e2 (patch) | |
tree | 57f791624217f9c1c15a4442b9b46dd9072d6f05 /gcc/config.in | |
parent | 8c6e3b2355b0cd245b0a4f802044d8fd885ea03e (diff) | |
download | gcc-630b1e3a187dc843958e8966345da6191226b8e2.tar.gz |
Allow setting of stack-clash via configure options.
This patch defines a configure option to allow the setting of the default
guard size via configure flags when building the target.
The new flag is:
* --with-stack-clash-protection-guard-size=<num>
The patch defines a new macro DEFAULT_STK_CLASH_GUARD_SIZE which targets need
to use explicitly is they want to support this configure flag and values that
users may have set.
gcc/
PR target/86486
* configure.ac: Add stack-clash-protection-guard-size.
* doc/install.texi: Document it.
* config.in (DEFAULT_STK_CLASH_GUARD_SIZE): New.
* params.def: Update comment for guard-size.
(PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE,
PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL): Update description.
* configure: Regenerate.
From-SVN: r264752
Diffstat (limited to 'gcc/config.in')
-rw-r--r-- | gcc/config.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in index 4db8aa1ea15..d7c3fbfd9b2 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -55,6 +55,13 @@ #endif +/* Define to larger than zero set to the default stack clash protector size as + a power of two in bytes. */ +#ifndef USED_FOR_TARGET +#undef DEFAULT_STK_CLASH_GUARD_SIZE +#endif + + /* Define if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. This is essential for fully standards-compliant handling of destructors, but requires |