summaryrefslogtreecommitdiff
path: root/libc/arch/i386/crti.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch/i386/crti.s')
-rw-r--r--libc/arch/i386/crti.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/arch/i386/crti.s b/libc/arch/i386/crti.s
new file mode 100644
index 0000000..906414b
--- /dev/null
+++ b/libc/arch/i386/crti.s
@@ -0,0 +1,14 @@
+.section .init
+
+.global _init
+.type _init, @function
+_init:
+ pushl %ebp
+ movl %esp, %ebp
+
+.section .fini
+
+.global _fini
+_fini:
+ pushl %ebp
+ movl %esp, %ebp