Mercurial > hg > CbC > CbC_gcc
view libsanitizer/sanitizer_common/sanitizer_linux_x86_64.S @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
// 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 #endif // 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. .text .balign 4 DEFINE_COMPILERRT_FUNCTION(internal_sigreturn) _CET_ENDBR mov $0xf, %eax // 0xf == SYS_rt_sigreturn mov %rcx, %r10 syscall ret // Won't normally reach here. END_COMPILERRT_FUNCTION(internal_sigreturn) #endif // defined(__linux__) && defined(__x86_64__)