__unmapself.s 361 字节
Newer Older
R
rofl0r 已提交
1 2 3 4 5
/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
.text
.global __unmapself
.type   __unmapself,@function
__unmapself:
R
rofl0r 已提交
6
	movl $0x4000000b,%eax   /* SYS_munmap */
R
rofl0r 已提交
7 8
	syscall         /* munmap(arg2,arg3) */
	xor %rdi,%rdi   /* exit() args: always return success */
R
rofl0r 已提交
9
	movl $0x4000003c,%eax   /* SYS_exit */
R
rofl0r 已提交
10
	syscall         /* exit(0) */