Is it possible to build a dynamically linked rust binary using aarch64-unknown-linux-musl?
-Ctarget-feature=-crt-static will do the trick.
I could build using the below options
cargo rustc --release --target=aarch64-unknown-linux-musl -- -C target-feature=-crt-static -C link-arg=-lgcc -C link-arg=-lpthread -C link-arg=-ldl
But when I execute the binary I get
malloc.c:2379: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.