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 1919
2020#if KMP_ARCH_X86 || KMP_ARCH_X86_64
2121
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+
2232# if KMP_MIC
2333// the 'delay r16/r32/r64' should be used instead of the 'pause'.
2434// The delay operation has the effect of removing the current thread from
6676 ALIGN 4
6777 .globl KMP_PREFIX_UNDERSCORE($0 )
6878KMP_PREFIX_UNDERSCORE($0 ):
79+ _CET_ENDBR
6980.endmacro
7081# else // KMP_OS_DARWIN
7182# define KMP_PREFIX_UNDERSCORE(x) x //no extra underscore for Linux* OS symbols
@@ -92,6 +103,7 @@ KMP_PREFIX_UNDERSCORE($0):
92103 .globl KMP_PREFIX_UNDERSCORE(\proc)
93104KMP_PREFIX_UNDERSCORE(\proc):
94105 .cfi_startproc
106+ _CET_ENDBR
95107.endm
96108.macro KMP_CFI_DEF_OFFSET sz
97109 .cfi_def_cfa_offset \sz
You can’t perform that action at this time.
0 commit comments