summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/alpha/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/alpha/crtn.S')
-rw-r--r--libc/sysdeps/linux/alpha/crtn.S30
1 files changed, 30 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/alpha/crtn.S b/libc/sysdeps/linux/alpha/crtn.S
new file mode 100644
index 000000000..c6fec15ba
--- /dev/null
+++ b/libc/sysdeps/linux/alpha/crtn.S
@@ -0,0 +1,30 @@
+ .set noat
+ .set noreorder
+ .set nomacro
+ .set macro
+
+ .section .init
+ .set nomacro
+ .align 2
+ .globl _init
+ .ent _init
+ .set nomacro
+ ldq $26,0($30)
+ lda $30,16($30)
+ ret $31,($26),1
+ .end _init
+ .set macro
+
+ .section .fini
+ .set nomacro
+ .align 2
+ .globl _fini
+ .ent _fini
+ .set nomacro
+ ldq $26,0($30)
+ lda $30,16($30)
+ ret $31,($26),1
+ .end _fini
+ .set macro
+
+ .ident "GCC: (GNU) 3.3.2"