summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/aarch64-sign-return-address-static-ctor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [AArch64] Branch Protection and Return Address Signing B Key SupportLuke Cheeseman2018-10-251-5/+25
| | | | | | | | | | | | | - Add support for -mbranch-protection=<type>[+<type>]* where - <type> ::= [standard, none, bti, pac-ret[+b-key,+leaf]*] - The protection emits relevant function attributes - sign-return-address=<scope> - sign-return-address-key=<key> - branch-protection git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345273 91177308-0d34-0410-b5e6-96231b3b80d8
* [AArch64] Enable return address signing for static ctorsOliver Stannard2018-09-131-0/+21
Functions generated by clang and included in the .init_array section (such as static constructors) do not follow the usual code path for adding target-specific function attributes, so we have to add the return address signing attribute here too, as is currently done for the sanitisers. Differential revision: https://reviews.llvm.org/D51418 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342126 91177308-0d34-0410-b5e6-96231b3b80d8