From 962692a1c7c1d534c2e2daa93de1db5933ae61bf Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 25 Dec 2017 09:36:24 -0500 Subject: __libc_entry_routine(): provide executable and libc reference addresses. --- arch/nt32/src/crt_glue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/nt32') diff --git a/arch/nt32/src/crt_glue.c b/arch/nt32/src/crt_glue.c index d09ffd2..c5af4b0 100644 --- a/arch/nt32/src/crt_glue.c +++ b/arch/nt32/src/crt_glue.c @@ -65,6 +65,8 @@ void __libc_entry_routine( /* ctx init */ ctx.size = sizeof(ctx); ctx.options = options; + ctx.refaddr = __main; + ctx.libcaddr = _init; ctx.ctty = __ctty; ctx.pthread_create_fn = pthread_create; ctx.pthread_surrogate_fn= __pthread_surrogate_init; -- cgit v1.2.3