Closed cosinusoidally closed 6 months ago
No, that's intentional, it has to be lib-arm64.c It uses the same functions as arm64 support code.
(by the way, you could run it in qemu too on riscv, though that requires passing through qemu into bwrap/chroot environment.)
Just happened to notice this https://github.com/fosslinux/live-bootstrap/blob/6ed2e09f3a533a1efdd807a77a7c00a07bf984f1/steps/tcc-0.9.26/pass1.kaem#L235C1-L240C3
When refactoring pass1.kaem for #355 . It seems to be building some arm64 support code for the riscv target? Or is that just a quirk of the riscv target (it maybe reuses some arm64 support code)? I don't have any riscv hardware so I can't check myself.