3 #include "linux_assym.h" /* system definitions */
4 #include <machine/asmacros.h> /* miscellaneous asm macros */
6 #include <amd64/linux/linux_syscall.h> /* system call numbers */
17 * To avoid excess stack frame the signal trampoline code emulates
18 * the 'call' instruction.
20 ENTRY(linux_rt_sigcode)
21 movq %rsp, %rbx /* preserve sigframe */
25 add $.startrtsigcode-.getip, %rax /* ret address */
27 jmp *LINUX_RT_SIGF_HANDLER(%rbx)
29 movq $LINUX_SYS_linux_rt_sigreturn,%rax /* linux_rt_sigreturn() */
30 syscall /* enter kernel with args */
36 .section .note.Linux, "a",@note
37 .long 2f - 1f /* namesz */
39 .long 4f - 3f /* descsz */
46 .long LINUX_VERSION_CODE
52 .section .eh_frame,"a",@progbits
54 .long .LENDCIEDLSI0-.LSTARTCIEDLSI0
57 .byte 1 /* Version number */
58 .string "zR" /* NULL-terminated
61 .uleb128 1 /* Code alignment factor */
62 .sleb128 -4 /* Data alignment factor */
63 .byte 8 /* Return address register column */
64 .uleb128 1 /* Augmentation value length */
65 .byte 0x1b /* DW_EH_PE_pcrel|DW_EH_PE_sdata4. */
66 .byte 0x0c /* DW_CFA_def_cfa */
69 .byte 0x88 /* DW_CFA_offset, column 0x8 */
73 .long .LENDFDEDLSI0-.LSTARTFDEDLSI0 /* Length FDE */
75 .long .LSTARTFDEDLSI0-.LSTARTFRAMEDLSI0 /* CIE pointer */
76 .long .startrtsigcode-. /* PC-relative start address */
77 .long .endrtsigcode-.startrtsigcode