It looks like libc.so is dynamically linked, but the function"calloc"(which is a member of libc) is statically linked. This caused libc to fail to call calloc during loading. How to solve this problem?
ps:There are both libc.a and libc.so in the compilation environment. Could rust links libc.so only, without libc.a linked ?
I have tried your sulotion,but it dose not work with the same error.
I have tried another sulotion,changing -Ctarget-feature=crt-static to -Ctarget-feature=-crt-static ,then it gose run with error " 'calloc' undefine references".
Dose crt-static introduce the definition of calloc? So Confused!