Expand description
build.rs helper: cross-compile a guest crate for the PVM2 target and link it into a runnable program.
Two entry points, deliberately split:
build_elfstops at the RV64EMC ELF. A personality that wants its own container (JAVM wraps the blob in a capImage) calls this and links the ELF itself.buildgoes all the way to a.nubpProgramBlobfile.
The target is riscv64emc-pvm2: RV64 embedded (16 registers) with
compressed, M, and the Zbb/Zba/Zbs/Zicond/Zicclsm extensions, no
atomics, panic=abort, PIE. It is a custom target JSON, so the
guest build needs -Zbuild-std and therefore RUSTC_BOOTSTRAP=1 —
which build_crate::GuestBuild sets.