This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Remastering binaries for porting betwean architectures?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Zoran Sinigoj <zorans at e5 dot ijs dot si>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 9 Oct 2003 14:09:09 -0400
- Subject: Re: Remastering binaries for porting betwean architectures?
- References: <Pine.LNX.4.44.0310091649510.19000-100000@kekec.e5.ijs.si>
On Thu, Oct 09, 2003 at 05:04:16PM +0200, Zoran Sinigoj wrote:
> Good day there.
>
> I've got an instances of particular shared object library for HPUX, SunOS
> and some other. I'm interested if those are possible to remaster in some
> way to produce ELF format for i386 architecture. Although an instance of
> my DSO for SunOS platform has been made in ELF format and I can examine
> its contents using readelf utility, it is useless in builds where linker
> yelds that DSO is incompatible.
> My objcopy man page sugests that a variety of architectures should be
> supported to recognize and translate from and to but `objdump -i' states
> only one and that's i386. So I assume there should be some way to upgrade
> binutils to recognize other architectures.
> Please advise me how can I achieve this or how could be possible to
> remaster alien DOS to work on Linux otherways.
Objcopy can only convert the format of the binary. It can't convert
the code; you need a copy of the DSO compiled for i386 to run it on
i386.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer