mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
userland: x86_64 linux hello world make PIE
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
_start:
|
_start:
|
||||||
asm_main_after_prologue:
|
asm_main_after_prologue:
|
||||||
/* write */
|
/* write */
|
||||||
mov $1, %rax /* syscall number */
|
mov $1, %rax /* syscall number */
|
||||||
mov $1, %rdi /* stdout */
|
mov $1, %rdi /* stdout */
|
||||||
mov $msg, %rsi /* buffer */
|
lea msg(%rip), %rsi /* buffer */
|
||||||
mov $len, %rdx /* len */
|
mov $len, %rdx /* len */
|
||||||
syscall
|
syscall
|
||||||
|
|
||||||
/* exit */
|
/* exit */
|
||||||
|
|||||||
Reference in New Issue
Block a user