>>>>> "RLH" == Richard L Hamilton <Richard.L.Hamilton at mindwarp.smart.net>
>>>>> writes:
RLH> Is anyone aware of an ELF implementation of something like "fat"
RLH> binaries
How does Apple do it? If we're just talking about gluing two objects together,
then it should be relatively straightforward. Start to try to commonize
things, and life gets harder. Of course, Cocoa apps are really directories
full of stuff, right? In that case, you wouldn't need any whizzy ELF
extensions -- you'd just define some part of the tree within that directory
such that you put one version here, the other version there, and so on. Sort
of like isaexec, but without the isaexec.
Assuming we're not going to switch to applications-as-directories, and want to
make it work using existing goo, you might be able to get away with using
something like ar. Glue two objects together, and then enhance elfexec to look
into the ".a" to determine which to run. Certainly ar doesn't seem to mind
bundling objects of different isas. There's other stuff you'd need to modify
as well so you could debug such objects. Things like mdb, /proc, and so forth
really care about what objects look like.
Matt
--
Matt Simmons - simmonmt at eng.sun.com | Solaris Kernel - New York
They told me it would disrupt my life less if I got killed sooner.
--Joseph Heller