This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Does binutils support multi-target at the same time?
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sourceware dot org
- Cc: WU Zilong <zilong dot wu at gmail dot com>
- Date: Sat, 26 Nov 2005 17:34:59 +0000
- Subject: Re: Does binutils support multi-target at the same time?
- References: <2a5062320511260842m4904480cxa301d58140b03953@mail.gmail.com> <2a5062320511260848q1c4894f6j225db83ca2280b1@mail.gmail.com>
On Saturday 26 November 2005 16:48, WU Zilong wrote:
> Hi all,
>
> Can I build binutils with multi-target? Such as enable both
> arm-elf and arm-coff at the same?
./configure --enable-targets=whatever
The assembler still only targets one arch but the rest of binutils can work
with multiple formats[*].
> So I can convert .o file from arm-elf or arm-coff to each other freely?
Not really. You can try objcopy, but chances are it won't work. ELF and coff
are sufficiently different I'd be surprised if you can convert between the
two in any vaguely reliable way.
Paul
[*] I haven't done exhaustive checks, but I think this is true.