This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

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


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


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