Merge pull request #2992 from hjl-tools/hjl/cet/dev

x86-64: Enable Intel CET
This commit is contained in:
Felix Handte 2022-01-20 11:24:47 -05:00 committed by GitHub
commit 4dfc4eca9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,4 +134,15 @@
# define ZSTD_ENABLE_ASM_X86_64_BMI2 0
#endif
/*
* For x86 ELF targets, add .note.gnu.property section for Intel CET in
* assembly sources when CET is enabled.
*/
#if defined(__ELF__) && (defined(__x86_64__) || defined(__i386__)) \
&& defined(__has_include)
# if __has_include(<cet.h>)
# include <cet.h>
# endif
#endif
#endif /* ZSTD_PORTABILITY_MACROS_H */