This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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-objcopy


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


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