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