From owner-freebsd-current Wed Jun 3 03:05:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA13155 for freebsd-current-outgoing; Wed, 3 Jun 1998 03:05:04 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from relay1.kar.net (relay1.kar.net [195.5.17.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA13142 for ; Wed, 3 Jun 1998 03:04:59 -0700 (PDT) (envelope-from kushn@mail.kar.net) Received: from olinet.isf.kiev.ua by relay1.kar.net with ESMTP id MAA13941; (8.8.last/vAk3/1.9) Wed, 3 Jun 1998 12:42:30 +0300 (EEST) Received: from kushnir.kiev.ua by olinet.isf.kiev.ua with SMTP id MAA23452; (8.8.last/vAk3/1.9) Wed, 3 Jun 1998 12:33:11 +0300 (EET DST) Date: Wed, 3 Jun 1998 12:40:58 +0300 (EEST) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua Reply-To: Vladimir Kushnir To: freebsd-current@FreeBSD.ORG Subject: modload doesn't work when OBJFORMAT=elf? 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 Well, the subject sais it: modload passes *_mod.o to /usr/bin/ld, which in turn calls /usr/libexec/elf/ld. Of course, this last can't link aout kernel and aout LKM. (BTW, why not make binutils supporting both a.out-i386-freebsd and elf32-i386? They seem to be able to do this, though this would somewhat increase their size, but not by much). Anyway, here's one more of the hardcoded paths: /usr/src/sbin/modload/pathnames.h: #define _PATH_LD "/usr/bin/ld" As an interim cure (sofisticated next to a stone ax, but works, until both kernel and LKMs are all elf) #define _PATH_LD "/usr/libexec/aout/ld" Regards, Vladimir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message