Subject: Re: Exec format error?
To: Peter Seebach <>
From: Simon Burge <>
List: current-users
Date: 12/17/2002 17:16:22
Peter Seebach wrote:

> So, I'm updating a system.  System is i386.  Kernel is NetBSD 1.6K.  Binaries
> are:
> 	/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> 	dynamically linked (uses shared libs), stripped
> /bin/sh says "/bin/sh: Exec format error".
> The kernel has EXEC_AOUT and EXEC_ELF32.
> Furthermore, 'file /usr/bin/file' gives the same output as 'file /bin/sh'.
> Is this likely to have to do with the new /lib shared libraries?  'ldd'
> succeeds on both /usr/bin/file and /bin/sh; /bin/sh points to /lib/,
> whereas /usr/bin/file points to /usr/lib/  Both files exist, and
> look "fine" - in fact, /usr/lib/ is itself a link to
> /lib/
> To make it weirder, /usr/src is NFS-mounted.  On the NFS server (also NetBSD
> 1.6K/i386), "/usr/src/bin/sh/obj/sh" works.  On the client, it gets "Exec
> format error".
> The only difference I see is that the client doesn't have COMPAT_SVR4, but
> it shouldn't need that, should it?

Missing /libexec/ld.elf_so ?

Simon Burge                            <>
NetBSD Support and Service: