lkml.org 
[lkml]   [2009]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 1/2] binfmt_elf: FatELF support in the binary loader.

> 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.



\
 
 \ /
  Last update: 2009-10-20 06:45    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site