xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_mips64.S (revision a7c257b03e4462df2b1020128fb82716512d7856)
1// This file is dual licensed under the MIT and the University of Illinois Open
2// Source Licenses. See LICENSE.TXT for details.
3
4// Avoid being marked as needing an executable stack:
5#if defined(__linux__) && defined(__ELF__)
6.section .note.GNU-stack,"",%progbits
7#endif
8
9// Further contents are mips64 only:
10#if defined(__linux__) && defined(__mips64)
11
12.section .text
13.set noreorder
14.globl internal_sigreturn
15.type internal_sigreturn, @function
16internal_sigreturn:
17
18        li $v0,5211 // #5211 is for SYS_rt_sigreturn
19        syscall
20
21.size internal_sigreturn, .-internal_sigreturn
22
23#endif // defined(__linux__) && defined(__mips64)
24