about summary refs log tree commit diff
path: root/src/ldso/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso/x86_64')
-rw-r--r--src/ldso/x86_64/start.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ldso/x86_64/start.s b/src/ldso/x86_64/start.s
new file mode 100644
index 00000000..efb27454
--- /dev/null
+++ b/src/ldso/x86_64/start.s
@@ -0,0 +1,8 @@
+.text
+.global _start
+_start:
+	mov (%rsp),%rdi
+	lea 8(%rsp),%rsi
+	lea _GLOBAL_OFFSET_TABLE_(%rip),%rdx
+	call __dynlink
+	jmp *%rax