[oi-dev] GSOC2011

Andrew Gabriel illumos at cucumber.demon.co.uk
Mon Mar 21 16:55:37 UTC 2011


Cyril Plisko wrote:
> 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 ?

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




More information about the oi-dev mailing list