summaryrefslogtreecommitdiff
path: root/src/crt/crtn.s
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-01-21 21:44:28 +0100
committerAleksa Vučković <aleksav013@gmail.com>2022-01-21 23:24:55 +0100
commita914c37365967afaf3148293a857c36af6f94ecb (patch)
treeb7086b0b0b6e4bf427210fcfd31c7745920a73a5 /src/crt/crtn.s
parented84017353c6fc9421b223ff6ec62f8d881d8098 (diff)
Separating assembly, moving #defines to .h & cleaning Makefile
Diffstat (limited to 'src/crt/crtn.s')
-rw-r--r--src/crt/crtn.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crt/crtn.s b/src/crt/crtn.s
new file mode 100644
index 0000000..0e1c314
--- /dev/null
+++ b/src/crt/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