From ed5d024c8b4961b6d722bf45d2c98846afdc1191 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Thu, 7 Oct 2021 12:04:07 +0200 Subject: Calling global constructors --- src/crti.s | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/crti.s (limited to 'src/crti.s') diff --git a/src/crti.s b/src/crti.s new file mode 100644 index 0000000..30dd4ea --- /dev/null +++ b/src/crti.s @@ -0,0 +1,16 @@ +/* x86 crti.s */ +.section .init +.global _init +.type _init, @function +_init: + push %ebp + movl %esp, %ebp + /* gcc will nicely put the contents of crtbegin.o's .init section here. */ + +.section .fini +.global _fini +.type _fini, @function +_fini: + push %ebp + movl %esp, %ebp + /* gcc will nicely put the contents of crtbegin.o's .fini section here. */ -- cgit v1.2.3