summaryrefslogtreecommitdiffhomepage
path: root/crt/nt64/crt1.c
diff options
context:
space:
mode:
Diffstat (limited to 'crt/nt64/crt1.c')
-rw-r--r--crt/nt64/crt1.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/crt/nt64/crt1.c b/crt/nt64/crt1.c
index 75a5053..b74a2bf 100644
--- a/crt/nt64/crt1.c
+++ b/crt/nt64/crt1.c
@@ -1,11 +1,3 @@
-#ifdef LIBC_STATIC
-#define __external_routine
-#else
-#define __external_routine __attribute__((dllimport))
-#endif
-
-#include "psxglue.h"
-
/**
* options: posix session, fallback terminal emulator
* x86_64-nt64-midipix-gcc --target-help | grep -A2 posix
@@ -17,17 +9,13 @@ extern const int __crtopt_dinga __attribute((weak,alias("__disabled")));
extern const int __crtopt_ldso __attribute((weak,alias("__disabled")));
extern const int __crtopt_vrfs __attribute((weak,alias("__disabled")));
-int main();
-
-__psx_init_routine * __psx_init_fn(void);
-
-__external_routine
-void __libc_entry_routine(void *,void *,int);
+int main();
+void __libc_loader_init(void * __main, int flags);
void _start(void)
{
- __libc_entry_routine(
- main,__psx_init_fn(),
+ __libc_loader_init(
+ main,
__crtopt_posix
| __crtopt_dinga
| __crtopt_ldso