summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/x86_64/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/x86_64/crtn.S')
-rw-r--r--libc/sysdeps/linux/x86_64/crtn.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/x86_64/crtn.S b/libc/sysdeps/linux/x86_64/crtn.S
new file mode 100644
index 000000000..292e499a7
--- /dev/null
+++ b/libc/sysdeps/linux/x86_64/crtn.S
@@ -0,0 +1,19 @@
+/* glibc's sysdeps/x86_64/elf/initfini.c used for reference [EPILOG] */
+
+.file "initfini.c"
+
+
+.section .init
+.globl _init
+.type _init, @function
+ addq $8, %rsp
+ ret
+.size _init, .-_init
+
+
+.section .fini
+.globl _fini
+.type _fini, @function
+ addq $8, %rsp
+ ret
+.size _fini, .-_fini