lkml.org 
[lkml]   [1997]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: FAT binaries and Linux
On Wed, 17 Sep 1997, Richard Guenther wrote:
> 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!
> Better modify binfmt_elf or ld-linux/ld.

So one has to create binfmt_felf ?

Do existing implementation of "FAT binaries" share data between
binary types?
Would there be any use for data and code sharing?

Of course integers and such depend on byte-order, integer sizes
and alignment, but strings are usually shareable. With code sharing
it would be possible to have only critical functions optimized
for specific processor (386, 486, pentium, pro) and have anything
else shared. Code sharing would also allow usage of same fat binary
with multiple operating systems so that platform independent code
exists only once.

-mikko


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