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,

hello.o: ELF 32-bit LSB relocatable, ARM, version 1 (ARM), not stripped
data.o:  ELF 32-bit LSB relocatable, no machine, version 1 (ARM), not stripped

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


Or perhaps the machine field should default to 'ARM'.

Debatable. Since the input file is "binary" it is presumably not actually ARM code at all, but something else. (If it was ARM code it would have been created by the assembler and already have the machine field set to EM_ARM).


Cheers
  Nick


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