From c6e963c421c2e22f06a83b93cb4d0f76c68fb3e9 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Oct 2017 23:33:59 -0400 Subject: _start(): integrated __crtopt_ldso, __crtopt_vrfs. --- crt/nt32/crt1.c | 14 +++++++------- crt/nt64/crt1.c | 8 +++++--- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'crt') 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); } -- cgit v1.2.3