From owner-freebsd-current Sat Sep 19 06:17:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA04001 for freebsd-current-outgoing; Sat, 19 Sep 1998 06:17:45 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ns1.aha.ru (ns1.aha.ru [195.2.80.142]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA03994 for ; Sat, 19 Sep 1998 06:17:39 -0700 (PDT) (envelope-from ozz.etrust.ru!osa@serv.etrust.ru) Received: from sunny.aha.ru (sunny.aha.ru [195.2.83.112]) by ns1.aha.ru (8.9.1/8.9.1/aha-r/0.04B) with ESMTP id RAA18610; Sat, 19 Sep 1998 17:17:07 +0400 (MSD) Received: by sunny.aha.ru id RAA04647; (8.8.8/vak/1.9) Sat, 19 Sep 1998 17:16:59 +0400 (MSD) Received: from unknown(195.2.84.114) by sunny.aha.ru via smap (V1.3) id sma004627; Sat Sep 19 17:16:55 1998 Received: from ozz.etrust.ru by serv.etrust.ru with ESMTP id RAA06828; (8.9.1/vak/1.9) Sat, 19 Sep 1998 17:19:43 +0400 (MSD) Received: by ozz.etrust.ru id RAA00573; (8.9.1/vak/1.9) Sat, 19 Sep 1998 17:19:00 +0400 (MSD) From: osa@ozz.etrust.ru (Ozz!!!) Message-Id: <199809191319.RAA00573@ozz.etrust.ru> Subject: Re: Can't compile kernel in ELF... In-Reply-To: <199809190505.WAA23865@austin.polstra.com> from John Polstra at "Sep 18, 1998 10: 5:22 pm" To: jdp@polstra.com (John Polstra) Date: Sat, 19 Sep 1998 17:19:00 +0400 (MSD) Cc: freebsd-current@FreeBSD.ORG Reply-To: osa@etrust.ru X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-MIME-Autoconverted: from 8bit to quoted-printable by serv.etrust.ru id RAA06828 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id GAA03996 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In article <199809181105.PAA07430@ozz.etrust.ru>, > Ozz!!! wrote: > > Hello! > > I want compile kernel in ELF format... > > (by default, it normaly compile in a.out) > > OK! > > # cd /sys/i386/conf > > # setenv $KERNFORMAT elf > > # config THIRD > > # cd ../../compile/THIRD > > # make depend > > # make > > ...... > > .... > > loading kernel > > exception.o(.text+0x168a): undefined reference to `_swi_dispatcher' > > This almost always means that you need to add an entry for the symbol > in "src/sys/i386/include/asnames.h". Please let me know if that fixes > the problem. If it does, I'll commit it to our sources. > > John Polstra jdp@polstra.com > OK! I add to /sys/i386/conf/include/asnames.h following string: #define _swi_dispather swi_dispatcher Then I successfully compiled kernel in ELF, then install & reboot. # make install # reboot In boot-time: Invalid format! What about of #include in /sys/i386/boot/biosboot/boot.c or maybe some-think add in /usr/share/misc/magic ??? Rgdz, oZZ, osa@etrust.ru http://www.etrust.ru/osa/main.html FreeBSD: Да пребудет с нами сила! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message