* es.po: Update.
[official-gcc.git] / libsanitizer / sanitizer_common / sanitizer_linux_x86_64.S
blob6b892116ff4c33dc7654a8932e58d8434b6adc2c
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
5 #endif
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.
14 .text
15 .balign 4
16 DEFINE_COMPILERRT_FUNCTION(internal_sigreturn)
17         mov           $0xf,             %eax    // 0xf == SYS_rt_sigreturn
18         mov           %rcx,             %r10
19         syscall
20         ret                                     // Won't normally reach here.
21 END_COMPILERRT_FUNCTION(internal_sigreturn)
23 #endif // defined(__linux__) && defined(__x86_64__)