arm-elf-ld 2.16.1 crash at bfd/elf32-arm.c:5536

Nick Clifton nickc@redhat.com
Thu Mar 9 16:56:00 GMT 2006


Hi Shaun,

>>>It looks like the warning is caused by the machine field of the object
>>>file created by objcopy being set to 'no machine' instead of 'ARM'.
>>>Can I pass an option to objcopy to change the machine field?
>>
>>   --alt-machine-code 40
> 
> 
> $ arm-elf-objcopy -Ibinary -Oelf32-littlearm image.bin image.bin.o
> --alt-machine-code=40
> arm-elf-objcopy: unknown alternate machine code, ignored
> 
> What's the correct value for the `ARM' machine code?

Ah - this was the subject of a recent thread:

http://sources.redhat.com/ml/binutils/2006-02/msg00219.html

The patch from this thread has been checked in, so if you obtain the 
latest sources from the CVS repository and build a new objcopy you 
should be able to install the new machine code value using the command 
you described above.

Cheers
   Nick



More information about the Binutils mailing list