1 // This file is dual licensed under the MIT and the University of Illinois Open
2 // Source Licenses. See LICENSE.TXT for details.
4 // Avoid being marked as needing an executable stack:
5 #if defined(__linux__) && defined(__ELF__)
6 .section .note.GNU-stack,"",%progbits
9 // Further contents are x86_64-only:
10 #if defined(__linux__) && defined(__x86_64__)
12 #include "../builtins/assembly.h"
15 // If the "naked" function attribute were supported for x86 we could
16 // do this via inline asm.
19 DEFINE_COMPILERRT_FUNCTION(internal_sigreturn)
21 mov $0xf, %eax // 0xf == SYS_rt_sigreturn
24 ret // Won't normally reach here.
25 END_COMPILERRT_FUNCTION(internal_sigreturn)
27 #endif // defined(__linux__) && defined(__x86_64__)