* gcc-interface/trans.c (Subprogram_Body_to_gnu): Initialize locus.
[official-gcc.git] / libsanitizer / sanitizer_common / sanitizer_linux_x86_64.S
blob846d1a43370b3c9a9ed451076a4bd80404feec8e
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
7 #endif
9 // Further contents are x86_64-only:
10 #if defined(__linux__) && defined(__x86_64__)
12 #include "../builtins/assembly.h"
13 #include "cet.h"
15 // If the "naked" function attribute were supported for x86 we could
16 // do this via inline asm.
17 .text
18 .balign 4
19 DEFINE_COMPILERRT_FUNCTION(internal_sigreturn)
20         _CET_ENDBR
21         mov           $0xf,             %eax    // 0xf == SYS_rt_sigreturn
22         mov           %rcx,             %r10
23         syscall
24         ret                                     // Won't normally reach here.
25 END_COMPILERRT_FUNCTION(internal_sigreturn)
27 #endif // defined(__linux__) && defined(__x86_64__)