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