blob: 846d1a43370b3c9a9ed451076a4bd80404feec8e [file] [log] [blame]
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
// Avoid being marked as needing an executable stack:
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
// Further contents are x86_64-only:
#if defined(__linux__) && defined(__x86_64__)
#include "../builtins/assembly.h"
#include "cet.h"
// If the "naked" function attribute were supported for x86 we could
// do this via inline asm.
.balign 4
mov $0xf, %eax // 0xf == SYS_rt_sigreturn
mov %rcx, %r10
ret // Won't normally reach here.
#endif // defined(__linux__) && defined(__x86_64__)