From owner-cvs-all Thu Sep 17 02:03:16 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA28161 for cvs-all-outgoing; Thu, 17 Sep 1998 02:03:16 -0700 (PDT) (envelope-from owner-cvs-all) Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA28139 for ; Thu, 17 Sep 1998 02:03:09 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id FAA15168; Thu, 17 Sep 1998 05:02:42 -0400 (EDT) (envelope-from luoqi) Date: Thu, 17 Sep 1998 05:02:42 -0400 (EDT) From: Luoqi Chen Message-Id: <199809170902.FAA15168@lor.watermarkgroup.com> To: imp@village.org, peter@netplex.com.au Subject: Re: buildworld/installworld, minor inconsistancies Cc: committers@FreeBSD.ORG, dillon@backplane.com Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Warner Losh wrote: > > In message <199809170319.UAA26241@apollo.backplane.com> Matthew Dillon writes: > > : /usr/bin/doscmd currently built for a.out tree only > > > > This should build for all trees, but only as a.out. It works on an > > otherwise elf system. Hmmm, come to think of it, maybe it shouldn't > > build for elf systems because it needs the aout libraries. Yuck. > > Looks like a conversion is in order. Yuck++; > > > > Warner > > I "fixed" this at home by making doscmd.kernel be built in -aout mode. The doscmd driver > program just has a simple a.out loader. Making it understand elf wouldn't be too > hard and is probably the right thing - or use some other simple format that binutils > can generate. > > > > > Cheers, > -Peter > If I understand correctly, the reason for an a.out loader is a normal a.out executable loads into the below 1M area that DOS uses. Since ELF executables are loaded well above 1M, there is not need for such a loader, we could just map in anonymous pages to fill the below 1M area. And the doscmd executable could even be dynamically linked. -lq