Open tlambertz opened 4 years ago
@tlambertz I oversaw this issue. I merged the latest version of libhermit to this project. However, some test cases didn't run. I will solve it.
Now, the latest version of lib hermit-rs is able to run C applications. Now, I will look in your problems.
I am not sure if I understand your issue. Do you want to use Rust`s libstd in combination newlib?
Do you want to use Rust`s libstd in combination newlib?
Yes, this is essentially what I want. libstd in a library, linked to a newlib C application.
Hm, difficult... Currently, Rust's libstd uses another memory layout in comparison to newlib. This is the reason, why we forward the feature flag newlib
during the build process of libhermit, if we use it in combination of newlib
.
I want to trace a C application running on hermitcore with my tracer written in rust (rftrace). I'd ideally want to:
libhermit.a
librftrace_frontend_ffi.a
gcc main.c -lhermit -lrftrace_frontend_ffi -o main
)I got it working, but this currently requires a number of workarounds:
objcopy --strip-symbol runtime_entry librftrace_frontend_ffi.a
)let size = 100 * LargePageSize::SIZE;
in/src/mm/mod.rs::init()
)sys_tcp_stream_connect