Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751452AbZJTEnP (ORCPT ); Tue, 20 Oct 2009 00:43:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750841AbZJTEnO (ORCPT ); Tue, 20 Oct 2009 00:43:14 -0400 Received: from icculus.org ([67.106.77.212]:37636 "EHLO icculus.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbZJTEnO (ORCPT ); Tue, 20 Oct 2009 00:43:14 -0400 Date: Tue, 20 Oct 2009 00:43:09 -0400 (EDT) From: "Ryan C. Gordon" X-X-Sender: icculus@andre.icculuslan To: Jeremy Fitzhardinge cc: linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 1/2] binfmt_elf: FatELF support in the binary loader. In-Reply-To: <4ADD005A.4000401@goop.org> Message-ID: References: <4ADD005A.4000401@goop.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 28 > The idea seem interesting, but does it need to be ELF-specific? What > about making the executable a simple archive file format (possibly just > an "ar" archive?) which contains other executables. The archive file > format would be implemented as its own binfmt, and the internal > executables could be arbitrary other executables. The outer loader > would just try execing each executable until one works (or it runs out). I'm not sure the added flexibility is worth the extra complications. FatELF solves a specific problem: merging multiple ELF targets into one file, the most compelling use-case being to glue x86_64 and i686 binaries together. What you're describing would definitely be the route I'd have chosen if, say, a.out files were still in widespread use and actively competed with ELF for mindshare. > That is, what you have here, but without hacking up binfmt_elf more. I like to think of it as art, like a chef carving a fine piece of meat. :) --ryan. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/