]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AArch64, 6/6] Enable BTI: Add configure option.
authorsudi <sudi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jan 2019 14:32:06 +0000 (14:32 +0000)
committersudi <sudi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jan 2019 14:32:06 +0000 (14:32 +0000)
commit559dff7710645ff572001d485814c195c59d0e87
treedb02073be5558e36dbb273606c294c9de708594f
parent15b179097a8d5405623953a29beced7636b05b3d
[AArch64, 6/6] Enable BTI: Add configure option.

This patch is part of a series that enables ARMv8.5-A in GCC and
adds Branch Target Identification Mechanism.

This patch is adding a new configure option for enabling BTI and
Return Address Signing by default.

*** gcc/ChangeLog ***

2018-01-09  Sudakshina Das  <sudi.das@arm.com>

* config/aarch64/aarch64.c (aarch64_override_options): Add case to
check configure option to set BTI and Return Address Signing.
* configure.ac: Add --enable-standard-branch-protection and
--disable-standard-branch-protection.
* configure: Regenerated.
* doc/install.texi: Document the same.

*** gcc/testsuite/ChangeLog ***

2018-01-09  Sudakshina Das  <sudi.das@arm.com>

* gcc.target/aarch64/bti-1.c: Update test to not add command line
option when configure with bti.
* gcc.target/aarch64/bti-2.c: Likewise.
* lib/target-supports.exp
(check_effective_target_default_branch_protection):
Add configure check for --enable-standard-branch-protection.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267770 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/bti-1.c
gcc/testsuite/gcc.target/aarch64/bti-2.c
gcc/testsuite/lib/target-supports.exp