From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JJmWn-0000DZ-Ct for mharc-grub-devel@gnu.org; Tue, 29 Jan 2008 04:13:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJmWm-0000DJ-6r for grub-devel@gnu.org; Tue, 29 Jan 2008 04:13:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJmWh-0000Co-Md for grub-devel@gnu.org; Tue, 29 Jan 2008 04:13:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJmWh-0000Cl-K0 for grub-devel@gnu.org; Tue, 29 Jan 2008 04:13:07 -0500 Received: from smtp-vbr10.xs4all.nl ([194.109.24.30]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJmWh-0004F6-Be for grub-devel@gnu.org; Tue, 29 Jan 2008 04:13:07 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0T9D0k5044736 for ; Tue, 29 Jan 2008 10:13:06 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20080127194135.GA7041@thorin> <20080127200634.GA8249@thorin> <20080128091133.GA14058@thorin> <87y7a9auga.fsf@xs4all.nl> Mail-Copies-To: mgerards@xs4all.nl Date: Tue, 29 Jan 2008 10:14:33 +0100 In-Reply-To: (bean123ch@gmail.com's message of "Tue, 29 Jan 2008 17:02:37 +0800") Message-ID: <87bq75at8m.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] a.out kernel loader X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 09:13:12 -0000 Bean writes: > On Jan 29, 2008 4:48 PM, Marco Gerards wrote: >> Bean writes: >> >> > On Jan 28, 2008 5:11 PM, Robert Millan wrote: >> >> On Mon, Jan 28, 2008 at 04:10:42AM +0800, Bean wrote: >> >> > > > > >> >> > > > > How FreeBSD-specific is this? Will the same module apply to other a.out >> >> > > > > binaries ? (I ask since you gave it a generic name) >> >> > > > >> >> > > > it's an old format of the unix system: >> >> > > > >> >> > > > http://en.wikipedia.org/wiki/A.out >> >> > > >> >> > > I know.. I was referring to your loader. >> >> > >> >> > it should be generic, but i only test it using the loader from freebsd. >> >> >> >> In that case, I'd suggest putting it directly in loader/ (without i386/pc/). >> >> >> >> Moving files on CVS is a PITA :-/ >> > >> > ok, here is the new patch. >> >> It would be nice if a.out support could be shared so it can be used >> for multiboot as well. > > you mean adding it to the multiboot module ? The multiboot standard supports a.out. It would be nice if it was also capable of a.out. So this code can somehow be shared, like ELF support is shared now. >> > +/* a_mid */ >> > +#define MID_ZERO 0 /* unknown - implementation dependent */ >> > +#define MID_SUN010 1 /* sun 68010/68020 binary */ >> > +#define MID_SUN020 2 /* sun 68020-only binary */ >> > +#define MID_I386 134 /* i386 BSD binary */ >> > +#define MID_SPARC 138 /* sparc */ >> > +#define MID_HP200 200 /* hp200 (68010) BSD binary */ >> > +#define MID_HP300 300 /* hp300 (68020+68881) BSD binary */ >> > +#define MID_HPUX 0x20C /* hp200/300 HP-UX binary */ >> > +#define MID_HPUX800 0x20B /* hp800 HP-UX binary */ >> >> Like Robert asked, did you type this yourself? > > the header is copied from grub legacy image_aout.h, maybe i can format > it properly. Please do not blindly assume the copyright assignments for GRUB Legacy are ok... Perhaps they are not, I can't check... -- Marco