[lkml]   [1997]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectbinfmt_misc - a generic 'wrapper'-binary format [PATCH on WWW]

Today i hacked binfmt_misc, a generic binfmt that is used to start an
interpreter to execute a binary.
This work should obsolete binfmt_java and binfmt_em86, as they can easily
be emulated.

binfmt_misc works as follows:
- it maintains an array of structs, that contain a description of a binary
format, including a magic with size, offset and mask, and the
interpreter name.
- on request it invokes the given interpreter with the original program
as argument, as binfmt_java and binfmt_em86 and binfmt_mz do.
- binfmt_misc does not define any default binary-formats
- one must actually register an additional binary-format via a sysctl-call
(pls read the source for more information or see enablejava.c on the
web-site mentioned below)
- operating as module is not supported, since you would have to be awared
of too many module-requests to kerneld to support this properly

Please make comments on this scheme and also on the patch (which is not
really tested, but compiles) that can be found on:

Richard Guenther

 \ /
  Last update: 2005-03-22 13:39    [W:0.048 / U:3.700 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site