Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 1998 09:53:30 +0200
From:      Eivind Eklund <eivind@yes.no>
To:        FTG staff <jin@eubie.lbl.gov>, bugs@FreeBSD.ORG
Subject:   Re: what is changed in 3.0 for "ld" making lkm module
Message-ID:  <19980930095330.60321@follo.net>
In-Reply-To: <199809300041.RAA10238@eubie.lbl.gov>; from FTG staff on Tue, Sep 29, 1998 at 05:41:00PM -0700
References:  <199809300041.RAA10238@eubie.lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 29, 1998 at 05:41:00PM -0700, FTG staff wrote:
> This is the command to make lkm module before 3.0-BETA
> 
> 	ld -r -o /lkm/znatmdrv.o zatm_mod.o lib/znatm.Dro
> 
> # file /lkm/znatmdrv.o
> /lkm/znatmdrv.o:    FreeBSD/i386 object not stripped
> 
> under 3.0-BETA
> 
> # file /lkm/null_mod.o	# looks the same
> /lkm/null_mod.o: FreeBSD/i386 object not stripped
> 
> but
> 
> # file /lkm/znatmdrv.o
> /lkm/znatmdrv.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (FreeBSD), not stripped
> # modload -ezatm_mod /lkm/znatmdrv.o
> /usr/libexec/aout/ld: /lkm/znatmdrv.o: malformed input file (not rel or archive) modload: /usr/bin/ld: return code 1
> 
> Would someone please tell me what has been changed in "ld" command
> to make LKM module?

It need an -aout switch at the very least.

I think you'd find it convenient to use bsd.kmod.mk to create LKMs -
it abstract the actions for building the LKM, thus avoiding such
distruption.  Look the the cvs log for it for exact details of what
has changed WRT building LKMs.

Eivind.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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