Re: compile and run 32bit programs on aarch64eb
Christian Groessler <[email protected]> Tue, 25 Nov 2025 22:50:23 +0100
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Message-ID | <[email protected]> |
On 11/25/25 10:34 PM, Martin Husemann wrote: > 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). Ok. I'm hopefully going to check that out the next days if time permits. Btw, the line in compat_netbsd32(8) is wrong (or maybe not the only possibility): arm64 eabi /usr/libexec/ld.elf_so-eabi According to ktrace it should be /usr/libexec/ld.elf_so-evbarm. My 32bit target is "-m evbarm -a earmv7hfeb" (build.sh parameters). regards, chris