From 8b88c69b142375c9c7f75c8b2339441ff5401821 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 18 Oct 2017 01:17:32 +0000 Subject: _start(): moved flavor-specific logic (idata|ldso|vrfs) to __libc_loader_init(). --- crt/nt32/crtidata.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'crt/nt32/crtidata.c') diff --git a/crt/nt32/crtidata.c b/crt/nt32/crtidata.c index 6037c25..19e146a 100644 --- a/crt/nt32/crtidata.c +++ b/crt/nt32/crtidata.c @@ -3,14 +3,12 @@ /* see also: Scrt1.c */ /****************************************/ -#include "psxglue.h" - #define __external_routine __attribute__((dllimport)) -__external_routine -__psx_init_routine __psx_init; +__external_routine int __psx_init(int *,char ***,char ***,void *); +__external_routine void __libc_entry_routine(void *,void *,int); -__psx_init_routine * __psx_init_fn(void) +void __libc_loader_init(void * __main, int flags) { - return __psx_init; + __libc_entry_routine(__main,__psx_init,flags); } -- cgit v1.2.3