This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81708] The x86 stack canary location should be customizable
- From: "uros at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Aug 2017 20:59:42 +0000
- Subject: [Bug target/81708] The x86 stack canary location should be customizable
- Auto-submitted: auto-generated
- References: <bug-81708-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81708
--- Comment #12 from uros at gcc dot gnu.org ---
Author: uros
Date: Thu Aug 10 20:59:10 2017
New Revision: 251040
URL: https://gcc.gnu.org/viewcvs?rev=251040&root=gcc&view=rev
Log:
PR target/81708
* config/i386/i386.opt (mstack-protector-guard-symbol=): New option
* config/i386/i386.c (ix86_stack_protect_guard): Use
ix86_stack_protect_guard_symbol_str to generate varible declaration.
* doc/invoke.texi (x86 Options): Document
-mstack-protector-guard-symbol= option.
testsuite/ChangeLog:
PR target/81708
* gcc.target/i386/stack-prot-sym.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/stack-prot-sym.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/config/i386/i386.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog