We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e34c0 commit b642a70Copy full SHA for b642a70
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
@@ -26,3 +29,22 @@ _Py_trampoline_func_start:
26
29
.globl _Py_trampoline_func_end
27
30
_Py_trampoline_func_end:
28
31
.section .note.GNU-stack,"",@progbits
32
+# Note for indicating the assembly code supports CET
33
+#if defined(__x86_64__) && defined(__CET__) && (__CET__ & 1)
34
+ .section .note.gnu.property,"a"
35
+ .align 8
36
+ .long 1f - 0f
37
+ .long 4f - 1f
38
+ .long 5
39
+0:
40
+ .string "GNU"
41
+1:
42
43
+ .long 0xc0000002
44
+ .long 3f - 2f
45
+2:
46
+ .long 0x3
47
+3:
48
49
+4:
50
+#endif // __x86_64__
0 commit comments