[oi-dev] GSOC2011

Cyril Plisko cyril.plisko at mountall.com
Mon Mar 21 14:16:52 UTC 2011


On Mon, Mar 21, 2011 at 1:54 PM, Andrey Sokolov
<keremet at solaris.kirov.ru> 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 ?





-- 
Regards,
        Cyril




More information about the oi-dev mailing list