This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
arm-elf-objcopy
- From: Aravind B <arvindb at cranessoftware dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: 20 Jul 2004 18:06:36 +0530
- Subject: [ECOS] arm-elf-objcopy
> >On Tue, 2004-07-20 at 05:29, Aravind B wrote:
> On Tue, 2004-07-20 at 16:55, Gary Thomas wrote:
> > On Tue, 2004-07-20 at 05:18, Aravind B wrote:
> > > hi,
> > > i am trying to convert .elf to .hex file using the command
> > > arm-elf-objcopy -O ihex receive.elf receive.hex.
> > > My .elf file is 4.2Mb. But my .hex file size is 9 Mb which is
beyound my
> > > flash capacity.
> > > So is there any way to reduce the size of .hex file
> >
> > How big is the actual data? Use "arm-elf-size" to see this.
> > Maybe look at the headers to see if there is some reason for this
> > huge size. Can you send the output of "arm-elf-objdump -h"?
> >
> arm-elf-objdump receive.elf -h
>
> receive.elf: file format elf32-littlearm
>
> Sections:
> Idx Name Size VMA LMA File off Algn
> 0 .rom_vectors 00000040 40000000 40000000 00008000 2**0
> CONTENTS, ALLOC, LOAD, READONLY, CODE
> 1 .text 0002cee8 40000040 40000040 00008040 2**2
> CONTENTS, ALLOC, LOAD, READONLY, CODE
> 2 .fini 00000000 4002cf28 4002cf28 0004868c 2**0
> CONTENTS
> 3 .rodata 0000c614 4002cf28 4002cf28 00034f28 2**2
> CONTENTS, ALLOC, LOAD, READONLY, DATA
> 4 .rodata1 00000000 4003953c 4003953c 0004868c 2**0
> CONTENTS
> 5 .fixup 00000000 4003953c 4003953c 0004868c 2**0
> CONTENTS
> 6 .gcc_except_table 00000000 4003953c 4003953c 0004868c 2**0
> CONTENTS
> 7 .fixed_vectors 00000140 10000020 10000020 000486a0 2**5
> CONTENTS, READONLY
> 8 .data 0000068c 10008000 4003953c 00048000 2**2
> CONTENTS, ALLOC, LOAD, DATA
> 9 .bss 00033318 1000868c 1000868c 0005068c 2**5
> ALLOC
> 10 .comment 00000a9e 00000000 00000000 0005068c 2**0
> CONTENTS, READONLY
> Your program is actually only about 200KB. I think the problem may
> be the disparate sections confusing the ihex format (which IIRC is
> rather simpleminded).
> Why are you converting to ihex anyway? to use with e FLASH programmer
> or JTAG unit? Can't you use some other format, like Motorola
> S-records?
Flash chip i am using supports only intel format as it intel chip.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss