Re: compile and run 32bit programs on aarch64eb

Martin Husemann <[email protected]> Tue, 25 Nov 2025 22:34:53 +0100
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
On Tue, Nov 25, 2025 at 10:17:54PM +0100, Christian Groessler wrote:
> After NetBSD 5.0 (means: _now_) I've needed to place them under
> /emul/netbsd32 (specifically I've copied 32bit versions of /lib /libexec
> /usr/lib /usr/libexec there). If they can live elsewhere under /usr it's not
> obvious to me where, and I didn't want to drop them into the host's 64bit
> /lib /libexec /usr/lib /usr/libexec directories, fearing that I'd mess up my
> system.

It depends. On sparc64 they are under /usr/lib/sparc for example.
For mipsn64 they are under /usr/lib/n32.

I don't think aarch64 wires anything up like that (but I'm not sure,
src/compat has eabi and eabhif for arm, not sure if that applies here).

Martin