objcopy, binary inputs, and e_machine

Dave Korn dave.korn.cygwin@googlemail.com
Wed Jun 24 00:38:00 GMT 2009


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



More information about the Binutils mailing list