File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
21
21
22
+ # if defined(__ELF__) && defined(__CET__) && defined(__has_include)
23
+ # if __has_include(<cet.h> )
24
+ # include <cet.h>
25
+ # endif
26
+ # endif
27
+
28
+ # if !defined(_CET_ENDBR)
29
+ # define _CET_ENDBR
30
+ # endif
31
+
22
32
# if KMP_MIC
23
33
// the 'delay r16/r32/r64' should be used instead of the 'pause'.
24
34
// The delay operation has the effect of removing the current thread from
66
76
ALIGN 4
67
77
.globl KMP_PREFIX_UNDERSCORE($0 )
68
78
KMP_PREFIX_UNDERSCORE($0 ):
79
+ _CET_ENDBR
69
80
.endmacro
70
81
# else // KMP_OS_DARWIN
71
82
# define KMP_PREFIX_UNDERSCORE(x) x //no extra underscore for Linux* OS symbols
@@ -92,6 +103,7 @@ KMP_PREFIX_UNDERSCORE($0):
92
103
.globl KMP_PREFIX_UNDERSCORE(\proc)
93
104
KMP_PREFIX_UNDERSCORE(\proc):
94
105
.cfi_startproc
106
+ _CET_ENDBR
95
107
.endm
96
108
.macro KMP_CFI_DEF_OFFSET sz
97
109
.cfi_def_cfa_offset \sz
You can’t perform that action at this time.
0 commit comments