summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64/src
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nt64/src')
-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);