aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_bsdsetsid.S
blob: d9b1067c93fdbf84dc3eca3004f18c9fe11ef71e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.data
str:
	.asciz "a string\n"

.text
.globl _start

_start:
	jmp		c_main

c_main:
	movq	$0x1, %rdi
	leaq	str, %rsi
	movq	$0x9, %rdx
	movq	$0x4, %rax
	syscall
	xorq	%rdi, %rdi
	movq	$0x1, %rax
	syscall