Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / x86_64-crti.S
diff --git a/Usermode/Libraries/crt0.o_src/x86_64-crti.S b/Usermode/Libraries/crt0.o_src/x86_64-crti.S
new file mode 100644 (file)
index 0000000..fb7dad3
--- /dev/null
@@ -0,0 +1,15 @@
+.section .init
+.global _init
+.type _init, @function
+_init:
+       push %rbp
+       mov %rsp, %rbp
+       /* gcc will nicely put the contents of crtbegin.o's .init section here. */
+
+.section .fini
+.global _fini
+.type _fini, @function
+_fini:
+       push %rbp
+       mov %rsp, %rbp
+       /* gcc will nicely put the contents of crtbegin.o's .fini section here. */

UCC git Repository :: git.ucc.asn.au