Cyril Plisko wrote:
On Mon, Mar 21, 2011 at 1:54 PM, Andrey Sokolov
<[email protected]> wrote:
Hi Deano,

I would like to write a program that will convert linux binaries to
opensolaris binaries. The program will change dynamic relocation records. I
did a little experiment: http://forum.os-solaris.ru/index.php?topic=223.0 I
have converted a simple linux binary to opensolaris binary using hex editor.



Instead of [destructively] change the Linux binary in order to run it
under Solaris,
wouldn't it be better to do the job on the fly via dynamic linker ?
Linux binaries conveniently use /lib/ld-linux.so.1 (as opposed to
/lib/ld.so.1 for
Solaris). So one would imaging that if you will provide a
/lib/ld-linux.so.1 that
knows how to fix the relocations that would get you what you need, w/o touch
the binaries. Does it make sense ?

Might want to look back at any info which still exists on "lxrun" which worked in a not dissimilar way, and also see if there's any info about Sun's Solaris 10 Janus project still knocking around (which may be useful even though you are not proposing the same route).

--
Andrew

_______________________________________________
oi-dev mailing list
[email protected]
http://openindiana.org/mailman/listinfo/oi-dev

Reply via email to