about summary refs log tree commit diff
path: root/crt/x86_64/crt1.s
diff options
context:
space:
mode:
Diffstat (limited to 'crt/x86_64/crt1.s')
-rw-r--r--crt/x86_64/crt1.s16
1 files changed, 0 insertions, 16 deletions
diff --git a/crt/x86_64/crt1.s b/crt/x86_64/crt1.s
deleted file mode 100644
index 40de3bed..00000000
--- a/crt/x86_64/crt1.s
+++ /dev/null
@@ -1,16 +0,0 @@
-/* Written 2011 Nicholas J. Kain, released as Public Domain */
-.weak _init
-.weak _fini
-.text
-.global _start
-_start:
-	xor %rbp,%rbp   /* rbp:undefined -> mark as zero 0 (ABI) */
-	mov %rdx,%r9    /* 6th arg: ptr to register with atexit() */
-	pop %rsi        /* 2nd arg: argc */
-	mov %rsp,%rdx   /* 3rd arg: argv */
-	andq $-16,%rsp  /* align stack pointer */
-	mov $_fini,%r8  /* 5th arg: fini/dtors function */
-	mov $_init,%rcx /* 4th arg: init/ctors function */
-	mov $main,%rdi  /* 1st arg: application entry ip */
-	call __libc_start_main /* musl init will run the program */
-1:	jmp 1b