From 03bf9aba6d06016ee4c01ba10ad19f6029c4056d Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 28 Oct 2017 11:51:27 -0400 Subject: psxglue.h: pointers to ctors_fn & dtors_fn are now in struct __psx_vtbl. --- arch/nt64/src/crt_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/nt64/src') diff --git a/arch/nt64/src/crt_glue.c b/arch/nt64/src/crt_glue.c index 08928c1..2967ad6 100644 --- a/arch/nt64/src/crt_glue.c +++ b/arch/nt64/src/crt_glue.c @@ -82,8 +82,8 @@ void __libc_entry_routine( __teb_libc_idx = ctx.teb_libc_idx; /* surrogate init/fini arrays */ - __global_ctors_fn = ctx.do_global_ctors_fn; - __global_dtors_fn = ctx.do_global_dtors_fn; + __global_ctors_fn = __psx_vtbl->do_global_ctors_fn; + __global_dtors_fn = __psx_vtbl->do_global_dtors_fn; /* enter libc */ __psx_vtbl->start_main(__main,argc,argv,__libc_start_main); -- cgit v1.2.3