summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/ia64/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/ia64/crtn.S')
-rw-r--r--libc/sysdeps/linux/ia64/crtn.S33
1 files changed, 33 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/ia64/crtn.S b/libc/sysdeps/linux/ia64/crtn.S
new file mode 100644
index 000000000..5403446b5
--- /dev/null
+++ b/libc/sysdeps/linux/ia64/crtn.S
@@ -0,0 +1,33 @@
+/* glibc's sysdeps/ia64/elf/initfini.c used for reference [EPILOG] */
+
+ .text
+ .section .init
+ .proc _init#
+_init:
+ .prologue
+ .save ar.pfs, r34
+ .vframe r32
+ .save rp, r33
+ .body
+ .regstk 0,2,0,0
+ mov r12 = r32
+ mov ar.pfs = r34
+ mov b0 = r33
+ br.ret.sptk.many b0
+ .endp _init#
+
+
+
+ .section .fini
+ .proc _fini#
+_fini:
+ .prologue
+ .save ar.pfs, r34
+ .vframe r32
+ .save rp, r33
+ .body
+ mov r12 = r32
+ mov ar.pfs = r34
+ mov b0 = r33
+ br.ret.sptk.many b0
+ .endp _fini#