We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ae3d5 commit 7e83cf8Copy full SHA for 7e83cf8
Python/asm_trampoline.S
@@ -9,6 +9,9 @@
9
# }
10
_Py_trampoline_func_start:
11
#ifdef __x86_64__
12
+#if defined(__CET__) && (__CET__ & 1)
13
+ endbr64
14
+#endif
15
sub $8, %rsp
16
call *%rcx
17
add $8, %rsp
@@ -34,3 +37,21 @@ _Py_trampoline_func_start:
34
37
.globl _Py_trampoline_func_end
35
38
_Py_trampoline_func_end:
36
39
.section .note.GNU-stack,"",@progbits
40
+#ifdef __x86_64__ && defined(__CET__) && (__CET__ & 1)
41
+ .section .note.gnu.property,"a"
42
+ .align 8
43
+ .long 1f - 0f
44
+ .long 4f - 1f
45
+ .long 5
46
+0:
47
+ .string "GNU"
48
+1:
49
50
+ .long 0xc0000002
51
+ .long 3f - 2f
52
+2:
53
+ .long 0x3
54
+3:
55
56
+4:
57
+#endif // __x86_64__
0 commit comments