Re: FAT binaries and Linux

Richard Guenther (zxmpm11@student.uni-tuebingen.de)
Wed, 17 Sep 1997 12:03:46 +0200 (METDST)


On Tue, 16 Sep 1997, Teunis Peters wrote:

> On Sat, 13 Sep 1997, Alan Cox wrote:
>
> > > > We call this "FAT binaries" in Nextstep. Our GUI frontend to
> > > > make generates production code for Motorola, Intel, Sun and HP
> > > > platforms in a single executeable file.
> > > I've wished for this in userspace for a long time.. Maby sometime..
> >
> > Set up yourself a suitable program and set a misc loader for it.
> >
>
> Ahh - but can the 'misc' loader take over loading ELF binaries?
> ('FAT' binaries are possible AFAIK with ELF)
Well yes, but not as how you would like it ;-)
The fat binary will have to be recognized by a magic that actually
differs from normal elf executables!
If they are the same, binfmt_misc can catch them, but then the interpreter
(which has to be non elf of course) has to manage every elf binary. At
the time the interpreter is executed it has no chance to reject the binary
and continue processing other binfmts.
Better modify binfmt_elf or ld-linux/ld.

Richard.

--
Richard Guenther <richard.guenther@student.uni-tuebingen.de>
PGP: 2E829319 - 2F 83 FC 93 E9 E4 19 E2 93 7A 32 42 45 37 23 57
WWW: http://www.anatom.uni-tuebingen.de/~richi/