Subject: Linux a.out(?) binaries vs. suse_*
To: None <netbsd-help@netbsd.org>
From: Bill Squier <groo@cs.stevens-tech.edu>
List: netbsd-help
Date: 08/19/1999 21:42:58
I have only a binary for an Evolving Algebra (ASM) tool:

---
(groo, 24) ~/ASM-WB/bin>uname -spr
NetBSD 1.4 i386
(groo, 25) ~/ASM-WB/bin>file ./asm-wb 
./asm-wb: Linux/i386 demand-paged executable (ZMAGIC), stripped
(groo, 26) ~/ASM-WB/bin>ktrace ./asm-wb
./asm-wb: can't load dynamic linker '/lib/ld.so'
(groo, 27) ~/ASM-WB/bin>kdump
  3006 ktrace   RET   ktrace 0
  3006 ktrace   CALL  execve(0xefbfd547,0xefbfd490,0xefbfd498)
  3006 ktrace   NAMI  "./asm-wb"
  3006 asm-wb   EMUL  "linux"
  3006 asm-wb   RET   oldolduname -1 errno -2 No such file or directory
  3006 asm-wb   CALL  uselib(0x2f864a)
  3006 asm-wb   NAMI  "/emul/linux/lib/ld.so"
  3006 asm-wb   NAMI  "/emul/linux"
  3006 asm-wb   NAMI  "/emul/linux/lib/ld.so"
  3006 asm-wb   RET   uselib -1 errno -8 Exec format error
  3006 asm-wb   CALL  write(0x2,0xefbfd548,0x8)
  3006 asm-wb   GIO   fd 2 wrote 8 bytes
       "./asm-wb"
  3006 asm-wb   RET   write 8
  3006 asm-wb   CALL  write(0x2,0xefbfd458,0x2a)
  3006 asm-wb   GIO   fd 2 wrote 42 bytes
       ": can't load dynamic linker '/lib/ld.so'
        \0"
  3006 asm-wb   RET   write 42/0x2a
  3006 asm-wb   CALL  exit(0x80)
(groo, 28) ~/ASM-WB/bin>
---

I assume that `asm-wb' is an a.out executable?  In /emul/linux/lib, installed
from suse_*, we have:

-rwxr-xr-x  1 root  wheel  0 Apr 10 21:45 /emul/linux/lib/ld.so

(No kidding that's an Exec format error! ;-) )

Any chance of emulating this binary?

	/emul/linux/usr/i486-linuxaout

is essentially empty (directories for bin, lib and include exist).

Forgive my Linux a.out emulation stupidity.  Everything Linux of mine is ELF.