[ECOS] arm-elf-objcopy

Nick Garnett nickg@ecoscentric.com
Fri Jul 23 13:38:00 GMT 2004


Aravind B <arvindb@cranessoftware.com> writes:

> i have generated an hex file from elf using command
> arm-elf-objcopy -O ihex simple-alarm2.elf simple.hex
> when i tried to generate a bin file (dos environment) using this hex
> file, i am getting an error - Invalid record type in hex record - < line
> number>. This happens with all .hex files generated, using
> arm-elf-objcopy.

What is the hex record at that line? Does it look invalid? Maybe the
DOS tool you are using has a different idea of what constitutes a hex
file to binutils. 

> 
> I would like to know if this error is due to incorrect usage of the
> above command or for any other reason.

Generally we have only ever generated different formats directly from
the ELF original. Going via some intermediary format doesn't always
work since the intermediary may not have preserved enough information.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list