This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Regarding Linker Script
- From: "Dileep Kumar" <dileepkumart at gmail dot com>
- To: ecos-discuss at sourceware dot org
- Date: Tue, 25 Mar 2008 16:20:09 +0530
- Subject: [ECOS] 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