Does binutils support multi-target at the same time?

WU Zilong zilong.wu@gmail.com
Mon Nov 28 02:37:00 GMT 2005


Yes, I wish to convert arm-wince-pe targeted object code to elf object
format so that I can use it under arm linux ... (the object file is
pure algorithm module and does not call any external functions). From
your reply I think it is possible to use binutils to convert it,
right?

Thanks for you help.



On 11/27/05, Hans-Peter Nilsson <hp@bitrange.com> wrote:
> On Sun, 27 Nov 2005, WU Zilong wrote:
>
> > Thanks, you means we can not convert coff to elf with arm target
> > freely, then is there any good ideas to do this?
>
> I'm not sure I understand your question.  Support for output in
> multiple formats in the assembler, which was what I replied to,
> has nothing to do with *converting* between e.g. coff and elf.
>
> You can use the GNU binutils "objcopy" utility to convert
> between formats.  (I think this only works for files without
> relocations, i.e.  not intermediate object files.)  You can use
> the GNU linker to link together (intermediate) object files in
> different formats.
>
> brgds, H-P
>



More information about the Binutils mailing list