summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/alpha/crti.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-05 05:13:53 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-05 05:13:53 +0000
commite16f9ab53be8712d35b93edd952c9e3b1e57d439 (patch)
tree617b0719ec76cb80becda283e80c5f4d3ab185eb /libc/sysdeps/linux/alpha/crti.S
parentfeaafb1d34026cbb800a54fde208e6e5b8062838 (diff)
Continue the conversion to using per-arch crti.S and crtn.S
Diffstat (limited to 'libc/sysdeps/linux/alpha/crti.S')
-rw-r--r--libc/sysdeps/linux/alpha/crti.S43
1 files changed, 43 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/alpha/crti.S b/libc/sysdeps/linux/alpha/crti.S
new file mode 100644
index 000000000..5c25539cd
--- /dev/null
+++ b/libc/sysdeps/linux/alpha/crti.S
@@ -0,0 +1,43 @@
+ .set noat
+ .set noreorder
+ .set nomacro
+ .set macro
+
+ .section .init
+ .set nomacro
+ .align 2
+ .globl _init
+ .ent _init
+_init:
+ .frame $30,0,$26,0
+ .mask 0x4000000,0
+ ldah $29,0($27) !gpdisp!3
+ lda $29,0($29) !gpdisp!3
+$_init..ng:
+ lda $30,-16($30)
+ stq $26,0($30)
+ .prologue 1
+ .set macro
+
+ .align 2
+ .end _init
+
+ .section .fini
+ .set nomacro
+ .align 2
+ .globl _fini
+ .ent _fini
+_fini:
+ .frame $30,0,$26,0
+ .mask 0x4000000,0
+ ldah $29,0($27) !gpdisp!6
+ lda $29,0($29) !gpdisp!6
+$_fini..ng:
+ lda $30,-16($30)
+ stq $26,0($30)
+ .prologue 1
+ .set macro
+ .align 2
+ .end _fini
+
+ .ident "GCC: (GNU) 3.3.2"