[GCC, AARCH64] Add GNU note section with BTI and PAC.
authorSudakshina Das <sudi.das@arm.com>
Tue, 23 Apr 2019 15:51:25 +0000 (15:51 +0000)
committerSudakshina Das <sudi@gcc.gnu.org>
Tue, 23 Apr 2019 15:51:25 +0000 (15:51 +0000)
commit32efff9f947137bb6f6bf47a846e3bf8a162170a
tree2e71f2ea88b9a17d4c37acd54774bc6359e35af6
parentc7bfed18df8a3f85eb8acd15f860c3e828cd61d0
[GCC, AARCH64] Add GNU note section with BTI and PAC.

This patch adds the GNU NOTE section to the BTI and/or PAC
enabled objects for linux targets.

The patches for needed for these in binutils are already approved
and committed.
https://sourceware.org/ml/binutils/2019-03/msg00072.html

*** gcc/ChangeLog ***

2018-04-23  Sudakshina Das  <sudi.das@arm.com>

* config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
AArch64.
(aarch64_file_end_indicate_exec_stack): Add gnu note section.

gcc/testsuite/ChangeLog:

2018-04-23  Sudakshina Das  <sudi.das@arm.com>

* gcc.target/aarch64/bti-1.c: Add scan directive for gnu note section
for linux targets.
* gcc.target/aarch64/va_arg_1.c: Update scan directive to not clash
with GNU note section.

From-SVN: r270515
gcc/ChangeLog
gcc/config/aarch64/aarch64-linux.h
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/bti-1.c
gcc/testsuite/gcc.target/aarch64/va_arg_1.c