Merge pull request #2992 from hjl-tools/hjl/cet/dev
x86-64: Enable Intel CET
This commit is contained in:
commit
4dfc4eca9a
@ -134,4 +134,15 @@
|
|||||||
# define ZSTD_ENABLE_ASM_X86_64_BMI2 0
|
# define ZSTD_ENABLE_ASM_X86_64_BMI2 0
|
||||||
#endif
|
#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 */
|
#endif /* ZSTD_PORTABILITY_MACROS_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user