mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 13:04:27 +01:00
userland: x86_64 linux hello world make PIE
This commit is contained in:
@@ -9,7 +9,7 @@ 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user