Re: compile and run 32bit programs on aarch64eb
[email protected] (Michael van Elst) Mon, 24 Nov 2025 10:49:44 -0000 (UTC)
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Organization | Serpens User Group |
| Message-ID | <[email protected]> |
[email protected] (Christian Groessler) writes: >Is there a way to tell the system to load 32bit binaries from somewhere >else? I remember in former times one could setup a tree under /usr/emul >(or so) for example to run iBCS2 or Solaris programs. The 32bit compat code looks for files with /emul/netbsd32 prefixed. E.g.: arnold% uname -mp evbarm aarch64 arnold% find /emul/netbsd32/ -ls 42937 2 drwxr-xr-x 4 root wheel 512 Nov 24 11:45 /emul/netbsd32/ 42938 2 drwxr-xr-x 2 root wheel 512 Nov 24 11:44 /emul/netbsd32/libexec 42939 172 -rwxr-xr-x 1 root wheel 87240 Nov 24 11:44 /emul/netbsd32/libexec/ld.elf_so 42940 2 drwxr-xr-x 2 root wheel 512 Nov 24 11:46 /emul/netbsd32/lib 42941 4160 -rw-r--r-- 1 root wheel 2116080 Nov 24 11:46 /emul/netbsd32/lib/libc.so.12 arnoldl% file ./hostname32 file ./hostname32 ./hostname32: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /libexec/ld.elf_so, for NetBSD 10.1, compiled for: earmv6hf, not stripped arnold% ./hostname32 arnold An alternative is to just set up a 32bit chroot.