This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: binary to elf conversion


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]