From owner-freebsd-current Sun Dec 27 20:29:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA18542 for freebsd-current-outgoing; Sun, 27 Dec 1998 20:29:44 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA18533 for ; Sun, 27 Dec 1998 20:29:41 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA26845 for ; Mon, 28 Dec 1998 14:59:08 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA30255; Mon, 28 Dec 1998 14:59:10 +1030 (CST) Message-ID: <19981228145909.R12346@freebie.lemis.com> Date: Mon, 28 Dec 1998 14:59:09 +1030 From: Greg Lehey To: FreeBSD current users Subject: How do I build an a.out kld? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I find I have to change to klds in a hurry, and have just run across a number of problems. I'm running an a.out kernel, which loads ELF klds quite happily (once you know that there's an undocumented search path, but that you can win by specifying a full pathname). The problem is that there are two versions of gdb, one of which recognizes only a.out (the kernel), and the other only ELF (the kld). I appear to have three choices: 1. I can build an ELF kernel. My understanding is that this will also require me to install the new style boot blocks. Correct? If so, is there any documentation on what to do here? 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? 3. I could fix gdb to understand both a.out and ELF formats, but I don't think I'll do it today. Any comments? Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message