aboutsummaryrefslogtreecommitdiff
path: root/src/header/crti.s
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-11-06 02:00:07 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-11-06 02:00:07 -0600
commite14a65df735ce1b00533c73533ce91f8e591ea68 (patch)
tree6105dc57bbbdd88b6c6b1cec5da87e930cdd9dc8 /src/header/crti.s
parent036398ab051f2df5b70303e03f4f6506d36cb6eb (diff)
downloadgftos-e14a65df735ce1b00533c73533ce91f8e591ea68.tar.gz
global constructors
Diffstat (limited to 'src/header/crti.s')
-rw-r--r--src/header/crti.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/header/crti.s b/src/header/crti.s
new file mode 100644
index 0000000..91e86fa
--- /dev/null
+++ b/src/header/crti.s
@@ -0,0 +1,12 @@
+.section .init
+.global _init
+.type _init @function
+_init:
+ push %ebp
+ movl %esp, %ebp
+
+.section .fini
+.global _fini
+_fini:
+ push %ebp
+ movl %esp, %ebp