summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64/src/crt_glue.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-10-28 11:51:27 -0400
committermidipix <writeonce@midipix.org>2017-10-28 12:45:07 -0400
commit03bf9aba6d06016ee4c01ba10ad19f6029c4056d (patch)
tree5a42b4cd28783d4a8f4ae777807a121ba1fe4074 /arch/nt64/src/crt_glue.c
parentffa3293e29b6efc2e6d952adea984e8b81b8918c (diff)
downloadmmglue-03bf9aba6d06016ee4c01ba10ad19f6029c4056d.tar.bz2
mmglue-03bf9aba6d06016ee4c01ba10ad19f6029c4056d.tar.xz
psxglue.h: pointers to ctors_fn & dtors_fn are now in struct __psx_vtbl.
Diffstat (limited to 'arch/nt64/src/crt_glue.c')
-rw-r--r--arch/nt64/src/crt_glue.c4
1 files changed, 2 insertions, 2 deletions
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);