summaryrefslogtreecommitdiff
path: root/libsanitizer/sanitizer_common/sanitizer_linux_mips64.S
blob: 0b76f3a473a234a0ad79abacb6e415a22d1cf80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 mips64 only:
#if defined(__linux__) && defined(__mips64)

.section .text
.set noreorder
.globl internal_sigreturn
.type internal_sigreturn, @function
internal_sigreturn:

        li $v0,5211 // #5211 is for SYS_rt_sigreturn
        syscall

.size internal_sigreturn, .-internal_sigreturn

#endif // defined(__linux__) && defined(__mips64)