This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: binary to elf conversion
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: binutils at sourceware dot org, Ralf Corsepius <ralf dot corsepius at rtems dot org>
- Date: Thu, 16 Aug 2007 12:38:51 -0500
- Subject: Re: binary to elf conversion
- References: <46C46561.30105@oarcorp.com> <jebqd7a1gn.fsf@sykes.suse.de>
Andreas Schwab wrote:
Joel Sherrill <joel.sherrill@oarcorp.com> writes:
Produced by this command:
powerpc-rtems4.8-objcopy -I binary -O elf32-powerpc tarfile
o-optimize/tarfile.o
You need to specify the binary architecture.
-B --binary-architecture <arch> Set arch of output file, when input is binary
I don't know how it ever worked at all if I was missing that.
It arch going to always be the canonical name of the target
architecture? I tried my powerpc and mips and it worked.
Why doesn't it default to the default architecture binutils was
built for?
I feel rather stupid since I know this used to work. Thanks.
Andreas.
--joel