mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
20 lines
259 B
ArmAsm
20 lines
259 B
ArmAsm
.data
|
|
s:
|
|
.ascii "hello\n"
|
|
len = . - s
|
|
.text
|
|
.global _start
|
|
_start:
|
|
|
|
/* Write. */
|
|
mov $1, %rax
|
|
mov $1, %rdi
|
|
mov $s, %rsi
|
|
mov $len, %rdx
|
|
syscall
|
|
|
|
/* Exit. */
|
|
mov $60, %rax
|
|
mov $0, %rdi
|
|
syscall
|