summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/hppa/crti.S
diff options
context:
space:
mode:
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