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>
next in thread | raw e-mail | index | archive | help
Hi, =20 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. =20 kldload: can't load ./pnicdrv.ko: Exec format error =20 the dmesg displayed =20 kldload: Unsupported file type kldload: unexpected relocation type 7 link_elf: symbol strcpy undefined =20 What the problem is? =20 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? =20 Thanks a lot, =20 Yong Rao Force10 networks Inc San Jose, CA =20 408 571 3617 =20 =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9E2742C54E161041A53F36F9A8DC31BE32494A>