This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Problem with Linker Script: specifying discontinuous memory
- From: David Roethig <droethig at cipher dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 06 Oct 2004 11:57:38 -0700
- Subject: [ECOS] Problem with Linker Script: specifying discontinuous memory
- Reply-to: droethig at cipher dot com
I am having a problem with Linker Script on how to specify
discontinuous memory for the .bss and .data regions.
Our board uses a Philips 2292 which on-chip ram and
external ram.
My goal: have the linker populate the .bss and .data
regions beginning with on-chip ram then continuing
to external ram.
Can anyone help me with this issue?
Thanks
Dave
MEMORY
{
ram : ORIGIN = 0x40000000, LENGTH = 0x4000
sram : ORIGIN = 0x81000000, LENGTH = 0x40000
rom : ORIGIN = 0x0, LENGTH = 0x40000
}
SECTIONS
{
SECTIONS_BEGIN
[..snip..]
SECTION_fixed_vectors (ram, 0x40000040, LMA_EQ_VMA)
SECTION_data (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table))
SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
[..snip..]
SECTIONS_END
}
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss