Add GNU properties note for Intel CET in x86_64-xlate.pl
authorRichard Levitte <levitte@openssl.org>
Fri, 17 Jan 2020 07:29:28 +0000 (08:29 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 18 Jan 2020 04:33:19 +0000 (05:33 +0100)
commitb2b43d1b698235ee674e588c224db38d9b78d1ea
tree7e5a04a474e33304fc3cb5ad23f52ff99d4e38ec
parentf6aa57741254723b0c32f0dfe1ed8ad886b43c80
Add GNU properties note for Intel CET in x86_64-xlate.pl

This appears to be emitted with gcc and clang with -fcf-protection
selected, so we should do the same.

We're trying to be smart, and only emit this when the 'endbranch'
pseudo-mnemonic has been used at least once.

This is inspired by and owes to work done by @hjl-tools (github)

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/10875)
crypto/perlasm/x86_64-xlate.pl