Mail Archives: djgpp/2001/02/12/12:06:42
gbcshady AT my-deja DOT com wrote:
[...]
> No, the .o file seems to be corrupt from the start. Here is what my
> command line and output look like. Note that the message about unknown
> architecture is *normal*,
I have my doubts regarding this. Whenever your input or output format
is 'binary', I think you're supposed to also specify a target
architecture and/or section names. Without that, objcopy might have a
hard time correctly interpreting even a simple binary file without any
file structure or symbols --- thus the warning.
> $ 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
Another useful test could be:
objdump -x -d output.o
to output (almost) everything about output.o that BFD can determine.
Further details might better be directed at the binutils mailing list,
or at least the djgpp-workers mailing list, where all the experts
porting GCC and binutils to DJGPP are listening.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -