From 217968885834e7e290b129d7dfde3a04f5a71452 Mon Sep 17 00:00:00 2001 From: Vyacheslav Chigrin Date: Wed, 10 Dec 2025 13:24:51 +0300 Subject: [PATCH] Add information to .eh_frame ELF secion about make_fcontext function. --- src/asm/make_x86_64_sysv_elf_gas.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asm/make_x86_64_sysv_elf_gas.S b/src/asm/make_x86_64_sysv_elf_gas.S index 9336210a..cabebff6 100644 --- a/src/asm/make_x86_64_sysv_elf_gas.S +++ b/src/asm/make_x86_64_sysv_elf_gas.S @@ -133,6 +133,8 @@ make_fcontext: ret /* return pointer to context-data */ trampoline: + .cfi_startproc + .cfi_undefined rip /* store return address on stack */ /* fix stack alignment */ _CET_ENDBR @@ -147,6 +149,7 @@ trampoline: #endif /* jump to context-function */ jmp *%rbx + .cfi_endproc finish: _CET_ENDBR