Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

netbsd32 emul in netbsd7



Grabbing a /rescue/ls from NetBSD-5/i386, and running it on -current/amd64
works, but on a recent 7.0_STABLE/amd64 kernel gives

./ls: Exec format error. Binary file not executable.

./ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for NetBSD 5.1, stripped

    12      1 ktrace   EMUL  "netbsd"
    12      1 ktrace   CALL  execve(0x7f7ffffffdbf,0x7f7fffffdbb0,0x7f7fffffdbc0)
    12      1 ktrace   NAMI  "./ls"
    12      1 ktrace   NAMI  "./ls"
    12      1 ktrace   RET   execve -1 errno 8 Exec format error
    12      1 ktrace   CALL  execve(0x7f7ff7510146,0x7f7fffffd680,0x7f7fffffdbc0)
    12      1 ktrace   NAMI  "/bin/sh"
    12      1 ktrace   NAMI  "/libexec/ld.elf_so"
    12      1 sh       EMUL  "netbsd"
    12      1 sh       RET   execve JUSTRETURN
    12      1 sh       CALL  mmap(0,0x8000,3,0x1002,0xffffffff,0,0)
    12      1 sh       RET   mmap 140187598290944/0x7f7ff7ff8000

no mention of NAMI "/emul/netbsd32"...

modstat suggests netbsd32 emulation is available:

compat_netbsd32  exec       builtin    -1    0                -        compat,compat_sysv,nfsserver,mqueue,exec_elf32


Any thoughts on where to look?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index