summaryrefslogtreecommitdiff
path: root/src/crtn.s
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2021-10-07 12:04:07 +0200
committerAleksa Vučković <aleksav013@gmail.com>2021-10-07 12:04:07 +0200
commited5d024c8b4961b6d722bf45d2c98846afdc1191 (patch)
tree9c3e710bf1f1c64c7cebbffe8527a7c765b96228 /src/crtn.s
parenta9f29cfe168f634434047b55ab16b760e9020680 (diff)
Calling global constructors
Diffstat (limited to 'src/crtn.s')
-rw-r--r--src/crtn.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crtn.s b/src/crtn.s
new file mode 100644
index 0000000..1da795d
--- /dev/null
+++ b/src/crtn.s
@@ -0,0 +1,10 @@
+/* x86 crtn.s */
+.section .init
+ /* gcc will nicely put the contents of crtend.o's .init section here. */
+ popl %ebp
+ ret
+
+.section .fini
+ /* gcc will nicely put the contents of crtend.o's .fini section here. */
+ popl %ebp
+ ret