Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 1998 05:02:42 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        imp@village.org, peter@netplex.com.au
Cc:        committers@FreeBSD.ORG, dillon@backplane.com
Subject:   Re: buildworld/installworld, minor inconsistancies
Message-ID:  <199809170902.FAA15168@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809170902.FAA15168>