summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/hppa/crti.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-12 01:10:24 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-12 01:10:24 +0000
commit38545a368ca50c8c24e5adae349bcbcae2065132 (patch)
tree81eaac7b3d99330be800ab8ae97dee28f2c9b49b /libc/sysdeps/linux/hppa/crti.S
parent63f4057c6726e42960439780675ad165cecc9f75 (diff)
initial port to hppa
Diffstat (limited to 'libc/sysdeps/linux/hppa/crti.S')
-rw-r--r--libc/sysdeps/linux/hppa/crti.S24
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/hppa/crti.S b/libc/sysdeps/linux/hppa/crti.S
new file mode 100644
index 000000000..9a37c7184
--- /dev/null
+++ b/libc/sysdeps/linux/hppa/crti.S
@@ -0,0 +1,24 @@
+/* glibc's sysdeps/hppa/elf/initfini.c used for reference [PROLOG] */
+
+ .section .init
+ .align 4
+ .globl _init
+ .type _init,@function
+_init:
+ stw %rp,-20(%sp)
+ stwm %r4,64(%sp)
+ stw %r19,-32(%sp)
+ copy %r19,%r4 /* delay slot */
+ copy %r4,%r19
+
+
+
+ .section .fini
+ .align 4
+ .globl _fini
+ .type _fini,@function
+_fini:
+ stw %rp,-20(%sp)
+ stwm %r4,64(%sp)
+ stw %r19,-32(%sp)
+ copy %r19,%r4