summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/alpha/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/arch/alpha/crt0.S')
-rw-r--r--usr/klibc/arch/alpha/crt0.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/usr/klibc/arch/alpha/crt0.S b/usr/klibc/arch/alpha/crt0.S
new file mode 100644
index 0000000..5e2babb
--- /dev/null
+++ b/usr/klibc/arch/alpha/crt0.S
@@ -0,0 +1,22 @@
+#
+# arch/alpha/crt0.S
+#
+
+ .text
+ .type _start,@function
+ .ent _start, 0
+ .globl _start
+_start:
+ .frame $30, 0, $26, 0
+ mov $31, $15
+ br $29, 1f
+1: ldgp $29, 0($29)
+ .prologue 0
+
+ lda $16, 0($30) # ELF data structure
+ lda $17, 0($0) # atexit pointer
+
+ jsr $26, __libc_init
+
+ .size _start,.-_start
+ .end _start