Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JJmMg-0002Wx-RQ for mharc-grub-devel@gnu.org; Tue, 29 Jan 2008 04:02:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJmMe-0002Vl-0W for grub-devel@gnu.org; Tue, 29 Jan 2008 04:02:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJmMb-0002Uo-Ga for grub-devel@gnu.org; Tue, 29 Jan 2008 04:02:42 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJmMb-0002UM-5t for grub-devel@gnu.org; Tue, 29 Jan 2008 04:02:41 -0500 Received: from rv-out-0910.google.com ([209.85.198.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJmMa-0001lA-Jo for grub-devel@gnu.org; Tue, 29 Jan 2008 04:02:40 -0500 Received: by rv-out-0910.google.com with SMTP id c27so3009928rvf.6 for ; Tue, 29 Jan 2008 01:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ecggfK2L9jxu1N3sFmjl/GynI8kdanWTbHgswhfr/5s=; b=gKwUQdgpfugDR2nJiiAv1nEpTRuZ0vA+E7pxqwGbm3gUj1cSUCF5nYsn50HQ033UMHYaI6A2pdVSL7KLU+NYUSBAHZRk6pVVcud4bWWCgl4BNNjdTJXfr8Dus9Q2wFSVIAdxXPBl+gGd6jFYGWX/uBclGaabmNnX6yk5ERG7ods= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gCw2NdopZ4H/7Ch0ap+5geiemD1xYYvFM36mMJKqeiT3MvXBvGhTeOwQldNlOiGNQxvTRiHTCnZyMGEZLCf1gCUzXCnNJz4ur9K1ejXHG+jYq+nMYOvQ42k6yywXklVNuHSOB3uuswbOWjzXGDcN4SK1xrX6d1/Nrgzsgg27pXw= Received: by 10.141.50.17 with SMTP id c17mr4236682rvk.33.1201597357777; Tue, 29 Jan 2008 01:02:37 -0800 (PST) Received: by 10.141.82.5 with HTTP; Tue, 29 Jan 2008 01:02:37 -0800 (PST) Message-ID: Date: Tue, 29 Jan 2008 17:02:37 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <87y7a9auga.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080127194135.GA7041@thorin> <20080127200634.GA8249@thorin> <20080128091133.GA14058@thorin> <87y7a9auga.fsf@xs4all.nl> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:02:44 -0000 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 ? > > +/* 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. -- Bean