[ECOS] Could anyone answer me this post thank you very much, Linker script question? where is the fixed_vectors section?(Online waiting for help)

Qiang Huang jameshq@liverpool.ac.uk
Thu Jan 23 23:51:00 GMT 2003



-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Qiang Huang
Sent: 23 January 2003 21:45
To: Ecos-Discuss
Subject: [ECOS] Linker script question? where is the fixed_vectors
section?ARM


Hi all:
   In a rom startup linker script I saw these and I can't figure this
out.(ARM target)

MEMORY
{
    ram : ORIGIN = 0, LENGTH = 0x8000000
    rom : ORIGIN = 0x40000000, LENGTH = 0x100000
}

SECTIONS
{
    SECTIONS_BEGIN
    SECTION_rom_vectors (rom, 0x40000000, LMA_EQ_VMA)
    SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
    SECTION_data (ram, 0x8000, FOLLOWING (.gcc_except_table))
    SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
    CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
    SECTIONS_END
}

if the flash is originally located at 0x0000H, then if I create a S-record
file and want to download it to the rom, where will be the section:
fixed_vectors stored? because it is defined as:     SECTION_fixed_vectors
(ram, 0x20, LMA_EQ_VMA),  according to LMA_EQ_VMA it should be stored at the
same address as the VMA as here in the ram, how is this interpreted in the
S-record file (file for downloading into the flash memory)? Thanks a lot.

BTW the order of the sections in the flash memory after the S-record file
downloaded is:
0x0000H    1. rom_vectors
continue.   2. text
cont.           3. fini
cont.           4. rodata
cont.           5. rodata1
cont.           6. fixup
cont.           7. gcc_exception_table
cont.           8. data

Is the correct? if so where is the fixed_vectors section stored in
flash(rom).

Thanks a lot




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


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



More information about the Ecos-discuss mailing list