summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--crt/nt32/crt1.c14
-rw-r--r--crt/nt64/crt1.c8
2 files changed, 12 insertions, 10 deletions
diff --git a/crt/nt32/crt1.c b/crt/nt32/crt1.c
index f58af6e..75a5053 100644
--- a/crt/nt32/crt1.c
+++ b/crt/nt32/crt1.c
@@ -19,17 +19,17 @@ extern const int __crtopt_vrfs __attribute((weak,alias("__disabled")));
int main();
-__external_routine
-__psx_init_routine __psx_init;
+__psx_init_routine * __psx_init_fn(void);
__external_routine
void __libc_entry_routine(void *,void *,int);
-void start(void)
+void _start(void)
{
__libc_entry_routine(
- main,
- __psx_init,
- __crtopt_posix | __crtopt_dinga);
+ main,__psx_init_fn(),
+ __crtopt_posix
+ | __crtopt_dinga
+ | __crtopt_ldso
+ | __crtopt_vrfs);
}
-
diff --git a/crt/nt64/crt1.c b/crt/nt64/crt1.c
index 0d319a1..75a5053 100644
--- a/crt/nt64/crt1.c
+++ b/crt/nt64/crt1.c
@@ -27,7 +27,9 @@ void __libc_entry_routine(void *,void *,int);
void _start(void)
{
__libc_entry_routine(
- main,
- __psx_init_fn(),
- __crtopt_posix | __crtopt_dinga);
+ main,__psx_init_fn(),
+ __crtopt_posix
+ | __crtopt_dinga
+ | __crtopt_ldso
+ | __crtopt_vrfs);
}