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/doc | |
parent | 8c6e3b2355b0cd245b0a4f802044d8fd885ea03e (diff) | |
download | gcc-630b1e3a187dc843958e8966345da6191226b8e2.zip gcc-630b1e3a187dc843958e8966345da6191226b8e2.tar.gz gcc-630b1e3a187dc843958e8966345da6191226b8e2.tar.bz2 |
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/doc')
-rw-r--r-- | gcc/doc/install.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 61ab97e..9302251 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1414,6 +1414,11 @@ These features are extensions to the traditional SVR4-based MIPS ABIs and require support from GNU binutils and the runtime C library. +@item --with-stack-clash-protection-guard-size=@var{size} +On certain targets this option sets the default stack clash protection guard +size as a power of two in bytes. On AArch64 @var{size} is required to be either +12 (4KB) or 16 (64KB). + @item --enable-__cxa_atexit Define if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. |