Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add a byte after the ELF perf trampoline end marker so it does not share
the following function's address, which BOLT may otherwise move.
1 change: 1 addition & 0 deletions Python/asm_trampoline_aarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ __Py_trampoline_func_end:
#else
.globl _Py_trampoline_func_end
_Py_trampoline_func_end:
.byte 0
.section .note.GNU-stack,"",@progbits
#endif

Expand Down
1 change: 1 addition & 0 deletions Python/asm_trampoline_riscv64.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ _Py_trampoline_func_start:
jr ra
.globl _Py_trampoline_func_end
_Py_trampoline_func_end:
.byte 0
.section .note.GNU-stack,"",@progbits
1 change: 1 addition & 0 deletions Python/asm_trampoline_x86_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ __Py_trampoline_func_end:
#else
.globl _Py_trampoline_func_end
_Py_trampoline_func_end:
.byte 0
.section .note.GNU-stack,"",@progbits
#endif
# Note for indicating the assembly code supports CET
Expand Down
Loading