This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: objcopy, binary inputs, and e_machine
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: binutils at sourceware dot org
- Date: Wed, 24 Jun 2009 00:35:36 +0100
- Subject: Re: objcopy, binary inputs, and e_machine
- References: <200906231546.28067.vapier@gentoo.org>
Mike Frysinger wrote:
> this behavior is because the objcopy sets the arch/mach of the output to match
> the input, and since this is a binary input, the arch/mach are set to none.
That seems obviously and blatantly wrong to me. Surely the arch/mach for
the input BFDs should be set one way and the arch/mach for the output BFD
should be set another in this case? If the "-I" option is setting the
parameters for the "-O" BFD, that's just a bug.
> or isnt there a saner route that'd work for everyone ?
Yes, if you have correctly diagnosed the problem then binutils is clearly
currently *not* sane for everyone. It shouldn't be a backend decision at all;
this is a wrong request by the client of BFD, isn't it?
cheers,
DaveK