mirror of
https://github.com/python/cpython
synced 2026-11-19 13:14:09 +03:00
CPython copies the trampoline templates into executable memory. Keep the ELF source in .rodata so BOLT preserves its bytes and boundaries. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
13 lines
368 B
ArmAsm
13 lines
368 B
ArmAsm
/* CPython copies this template into executable memory. */
|
|
.section .rodata
|
|
.globl _Py_trampoline_func_start
|
|
_Py_trampoline_func_start:
|
|
addi sp,sp,-16
|
|
sd ra,8(sp)
|
|
jalr a3
|
|
ld ra,8(sp)
|
|
addi sp,sp,16
|
|
jr ra
|
|
.globl _Py_trampoline_func_end
|
|
_Py_trampoline_func_end:
|
|
.section .note.GNU-stack,"",@progbits
|