1018981977
libsanitizer/ * All source files: Merge from upstream 285547. * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New variable. * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it. * asan/Makefile.am (asan_files): Add new files. * asan/Makefile.in: Regenerate. * ubsan/Makefile.in: Likewise. * lsan/Makefile.in: Likewise. * tsan/Makefile.am (tsan_files): Add new files. * tsan/Makefile.in: Regenerate. * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files. (EXTRA_libsanitizer_common_la_SOURCES): Define. (libsanitizer_common_la_LIBADD): Likewise. (libsanitizer_common_la_DEPENDENCIES): Likewise. * sanitizer_common/Makefile.in: Regenerate. * interception/Makefile.in: Likewise. * libbacktace/Makefile.in: Likewise. * Makefile.in: Likewise. * configure: Likewise. * merge.sh: Handle builtins/assembly.h merging. * builtins/assembly.h: New file. * asan/libtool-version: Bump the libasan SONAME. From-SVN: r241977
24 lines
812 B
ArmAsm
24 lines
812 B
ArmAsm
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
// 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"
|
|
|
|
// If the "naked" function attribute were supported for x86 we could
|
|
// do this via inline asm.
|
|
.text
|
|
.balign 4
|
|
DEFINE_COMPILERRT_FUNCTION(internal_sigreturn)
|
|
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__)
|