Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2007 12:37:56 -0700
From:      "Yong Rao" <yrao@force10networks.com>
To:        <freebsd-amd64@freebsd.org>
Subject:   kldload issue: "Exec format error" with amd64 FreeBSD
Message-ID:  <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com>

index | next in thread | raw e-mail

Hi,

 

I am porting a device driver from 32 bit FreeBSD OS (6.2) to amd64
(6.2-RELEASE-p7).

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

 

the dmesg displayed

 

kldload: Unsupported file type

kldload: unexpected relocation type 7

link_elf: symbol strcpy undefined

 

What the problem is?

 

In the compiling option we added extra "-m64 -fPIC ...". What particular
options/flags else we should add in?

Is there example makefile(device driver code set) we can refer to?

 

Thanks a lot,

 

Yong Rao

Force10 networks Inc

San Jose, CA

 

408 571 3617

 

 



home | help

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