binary to elf conversion

Mike Frysinger vapier@gentoo.org
Thu Aug 16 18:04:00 GMT 2007


On Thursday 16 August 2007, Joel Sherrill wrote:
> 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 think a similar question was posed for default -EB/-EL selection and the 
answer was no one really cared enough to fix it ;)

i imagine if you posted a patch, there wouldnt really be objections to the 
behavior change ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20070816/139cf00c/attachment.sig>


More information about the Binutils mailing list