userland: x86_64 linux hello world make PIE

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent c4d37134da
commit f1c3b64a55

View File

@@ -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 */