This is the mail archive of the binutils@sources.redhat.com 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]

Re: possible objcopy misfeature


Hi Matthew,

: Hello.  I'm not sure whether or not I've found a bug in the GNU
: binutils, so I will quickly pose my question here.
:
: I'm using the latest ports of objcopy (on several platforms) to
: convert a raw binary file to an object file that can be linked into
: a gcc program. 
: 
: $ objcopy -v -I binary -O coff-go32 input.bin output.o
: > copy from input.bin(binary) to output.o(coff-go32)
: > Warning: Output file cannot represent architecture UNKNOWN!
: $ nm output.o
: > c:/djgpp/bin/nm.exe: output.o: File format not recognized
: 
: My question is: Is the arm-elf version of objcopy/binutils broken
: here, or are all the others?  If so, what is the nature of the fix? 

This sounds very much like the problem that was addressed by a patch
submitted by Stefan Geuken.  The patch can be found at:

  http://sources.redhat.com/ml/binutils/2001-02/msg00381.html

The patch has not gone into the sources yet, but you may be able to
make use of it in your own copy of the sources.

Cheers
	Nick


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