kldload issue: "Exec format error" with amd64 FreeBSD

Jeremy Chadwick koitsu at FreeBSD.org
Fri Aug 10 20:09:25 UTC 2007


On Fri, Aug 10, 2007 at 12:37:56PM -0700, Yong Rao wrote:
> The compiling passed without any problem. But while I do kldload the
> module, we got problem.
> kldload: can't load ./pnicdrv.ko: Exec format error
> 
> kldload: Unsupported file type
> kldload: unexpected relocation type 7
> link_elf: symbol strcpy undefined
> 
> What the problem is?

I've seen this happen on RELENG_6 amd64 (in other modules) when
COMPAT_IA32 is missing from the kernel config.  Taken from my own amd64
box:

# Needed for accf_http.ko for sure.  May be other stuff that needs this too.
# We need this regardless of NO_LIB32=true in make.conf being used or not.
options         COMPAT_IA32             # Compatible with i386 binaries

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |



More information about the freebsd-amd64 mailing list