From owner-freebsd-current Mon Dec 28 15:49:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA13903 for freebsd-current-outgoing; Mon, 28 Dec 1998 15:49:16 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA13895 for ; Mon, 28 Dec 1998 15:49:11 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by nlsystems.com (8.9.1/8.8.5) with SMTP id XAA15548; Mon, 28 Dec 1998 23:48:08 GMT Date: Mon, 28 Dec 1998 23:48:08 +0000 (GMT) From: Doug Rabson To: Greg Lehey cc: Peter Wemm , FreeBSD current users Subject: Re: How do I build an a.out kld? In-Reply-To: <19981229100025.K12346@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 29 Dec 1998, Greg Lehey wrote: > On Monday, 28 December 1998 at 19:44:59 +0800, Peter Wemm wrote: > > Doug Rabson wrote: > >> On Mon, 28 Dec 1998, Greg Lehey wrote: > > [..] > >>> 2. I could build an a.out kld. Unfortunately, there's an > >>> (undocumented) program called gensetdefs which runs against the > >>> objects, and expects only ELF files. It doesn't understand an > >>> -aout flag. Can I get past this problem? > >> > >> Are you using bsd.kmod.mk? If you look at it, gensetdefs is only used for > >> elf. Linking an a.out module is even simpler: > >> > >> ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${OBJS} ${KMODDEPS} > >> > >> Try 'make OBJFORMAT=aout' and see what happens. > > > > Err, my recollection was that it needed to be in the environment, ie more > > like: env OBJFORMAT=aout make > > Neither of these answer the original question: how to I get gensetdefs > to work on a.out objects? > > It's now a moot point: I've just about finished migrating to ELF, > which I had to do anyway at some point. Thanks to you and Jordan for > the details on that. I thought I did answer it. Gensetdefs is not needed (and should not be used) for a.out. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message