Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2007 13:27:25 -0700
From:      "Yong Rao" <yrao@force10networks.com>
To:        "Jeremy Chadwick" <koitsu@FreeBSD.org>
Cc:        freebsd-amd64@FreeBSD.org
Subject:   RE: kldload issue: "Exec format error" with amd64 FreeBSD
Message-ID:  <9E2742C54E161041A53F36F9A8DC31BE324966@EXCH-CLUSTER-04.force10networks.com>
In-Reply-To: <20070810195212.GA3672@eos.sc1.parodius.com>
References:  <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> <20070810195212.GA3672@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Jeremy,

Thanks for your email.

I checked the kernel configuration file we used. I noticed that the
options COMPAT_IA32 was included in that file.=20

Thanks,
Yong Rao
MTS
Force10 Networks Inc.
San Jose, CA 95134
www.force10networks.com


-----Original Message-----
From: Jeremy Chadwick [mailto:koitsu@FreeBSD.org]=20
Sent: Friday, August 10, 2007 12:52 PM
To: Yong Rao
Cc: freebsd-amd64@FreeBSD.org
Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD

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
>=20
> kldload: Unsupported file type
> kldload: unexpected relocation type 7
> link_elf: symbol strcpy undefined
>=20
> 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=3Dtrue in make.conf being used or
not.
options         COMPAT_IA32             # Compatible with i386 binaries

--=20
| 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
|




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9E2742C54E161041A53F36F9A8DC31BE324966>