Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752455AbZJXAZw (ORCPT ); Fri, 23 Oct 2009 20:25:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751504AbZJXAZw (ORCPT ); Fri, 23 Oct 2009 20:25:52 -0400 Received: from icculus.org ([67.106.77.212]:57094 "EHLO icculus.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751385AbZJXAZv (ORCPT ); Fri, 23 Oct 2009 20:25:51 -0400 Date: Fri, 23 Oct 2009 20:25:55 -0400 (EDT) From: "Ryan C. Gordon" X-X-Sender: icculus@caridad.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: <4AE22B34.7090103@goop.org> Message-ID: References: <4ADD005A.4000401@goop.org> <4AE22B34.7090103@goop.org> User-Agent: Alpine 1.10 (OSX 962 2008-03-14) 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: 1278 Lines: 33 > It would be nice to have something that would conceptually work for > other architectures with other executable file formats. Granted ELF is > most common, but its far from the only one. It would be nice, but I'm not certain it's practical. I mean, if we embed a Windows .exe in there, Windows is never going to be able to load it, I presume. That being said, I suppose there's no reason you _couldn't_ do that with the existing FatELF format. Just add an OSABI for, say, Windows PE files and embed one like anything else. Non-Windows platforms will ignore it because it's the wrong OSABI. If something tried to process it as an ELF file, it'll correctly believe it to be a corrupt file. (Replace Windows with your favorite non-ELF platform if you like.) This isn't really a goal of the project, but since you brought it up, it IS actually feasible with the existing code and framework. > Well, its really a bit diseased, with lots of gristly bits and a few > unexpected tubes sticking out the side. Eww. --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/