summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/crt/i386
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libc-top-half/musl/crt/i386/crti.s9
-rw-r--r--libc-top-half/musl/crt/i386/crtn.s7
2 files changed, 16 insertions, 0 deletions
diff --git a/libc-top-half/musl/crt/i386/crti.s b/libc-top-half/musl/crt/i386/crti.s
new file mode 100644
index 0000000..d2682a2
--- /dev/null
+++ b/libc-top-half/musl/crt/i386/crti.s
@@ -0,0 +1,9 @@
+.section .init
+.global _init
+_init:
+ sub $12,%esp
+
+.section .fini
+.global _fini
+_fini:
+ sub $12,%esp
diff --git a/libc-top-half/musl/crt/i386/crtn.s b/libc-top-half/musl/crt/i386/crtn.s
new file mode 100644
index 0000000..f3b61e0
--- /dev/null
+++ b/libc-top-half/musl/crt/i386/crtn.s
@@ -0,0 +1,7 @@
+.section .init
+ add $12,%esp
+ ret
+
+.section .fini
+ add $12,%esp
+ ret