This is the mail archive of the ecos-discuss@sourceware.org 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]

Regarding Linker Script


Hi,
Could you please tell me, what will be the location counter value in each line ?
Also where  .vectors section is loaded ?

MEMORY
{
    ram : ORIGIN = 0x00020000, LENGTH = 0x1000000
}

SECTIONS
{

    __reserved_vectors = 0; . = __reserved_vectors + 0x3000;
    __reserved_vsr_table = ALIGN (0x10); . = __reserved_vsr_table + 0x200;
    __reserved_virtual_table = ALIGN (0x10); . =
__reserved_virtual_table + 0x100;
    __reserved_for_rom = ALIGN (0x10); . = __reserved_for_rom + 0x1cd00;
    .vectors ALIGN (0x10) : { . = .; KEEP(*(.vectors)) } > ram
    .text ALIGN (0x4) : { _stext = .; *(.text*) *(.gnu.warning)
*(.gnu.linkonce*) *(.init) } > ram _etext = .; PROVIDE (etext = .);
  .............................
...........................
}


Thanks
Dileep Kumar

-- 
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]