blob: 3223892a6b15d88c0ce7f63a16c1541833d957ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* MIPS/IRIX PIC setgid chainable code
*
* -sc.
*/
#include <sgidefs.h>
#include <sys/regdef.h>
#include <sys/asm.h>
#include <sys.s>
#include <sys/syscall.h>
.section .text
.globl cbegin
.globl cend
cbegin:
.set noreorder
.set nomacro
/* setgid (a0) */
li a0, 0x4141 /* gid ^ 0x5555 */
xor a0, a0, 0x5555
li v0, SYS_setgid /* 0x0416 */
syscall
li t8, 0x7350
.end cbegin
cend:
|