summaryrefslogtreecommitdiffstats
path: root/libgcc
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/x86/crti.s5
-rw-r--r--libgcc/x86/crtn.s3
2 files changed, 8 insertions, 0 deletions
diff --git a/libgcc/x86/crti.s b/libgcc/x86/crti.s
new file mode 100644
index 0000000..57cb8c1
--- /dev/null
+++ b/libgcc/x86/crti.s
@@ -0,0 +1,5 @@
+section .init
+global _init:function
+_init:
+ push ebp
+ mov ebp, esp
diff --git a/libgcc/x86/crtn.s b/libgcc/x86/crtn.s
new file mode 100644
index 0000000..537fa65
--- /dev/null
+++ b/libgcc/x86/crtn.s
@@ -0,0 +1,3 @@
+section .init
+ pop ebp
+ ret