Re: [RFC][PATCH 1/2] binfmt_elf: FatELF support in the binaryloader.
From: Ryan C. Gordon
Date: Tue Oct 20 2009 - 00:43:32 EST
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/