This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
fixed_vectors section from FLASH to ROM like data section
- From: Aravind B <arvindb at cranessoftware dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: 20 Jul 2004 18:03:03 +0530
- Subject: [ECOS] fixed_vectors section from FLASH to ROM like data section
> >Hi,
> >I'm not sure but I had the same problem because of a bad location of
> >data section, the LMA and VMA address
> >were the same, both located in RAM. So, in your case I wonder whether
> >LMA and VMA address of your fixed_vectors section should not be
> >d ifferent like data section. In that case, at the runtime you will
> >have to copy the fixed_vectors section from FLASH to ROM like data
> >section.
> > Stephane
> > 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
But LMA and VMA address of .fixed_vectors is
Idx Name Size VMA LMA File off Algn
00000140 10000020 10000020 000486a0 2**5
How to copy fixed_vectors section from FLASH to ROM like data section.
at runtime
thanking in advance
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss