summaryrefslogtreecommitdiff
path: root/include/sinit.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-06 15:29:42 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-06 15:29:42 -0400
commit5f236d558aa37918f0286383ba9489a550283d7f (patch)
treee0b772d6526594a8c737949cae2d5e636fdba876 /include/sinit.h
parent760a22318663896b2ebd76d8d3213dcc9e9bcfe5 (diff)
libsyscall.a source
Diffstat (limited to 'include/sinit.h')
-rw-r--r--include/sinit.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sinit.h b/include/sinit.h
new file mode 100644
index 00000000..47fe4438
--- /dev/null
+++ b/include/sinit.h
@@ -0,0 +1,10 @@
+#ifndef GUARD_SINIT_H
+#define GUARD_SINIT_H
+
+static void NitroStaticInit(void);
+#pragma define_section SINIT ".sinit" abs32 RWX
+#pragma section SINIT begin
+SDK_FORCE_EXPORT static void (*NitroStaticInit_[])(void) = { NitroStaticInit };
+#pragma section SINIT end
+
+#endif //GUARD_SINIT_H