This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RAM overlap error
- From: "J Jordaan" <jjordaan at sun dot ac dot za>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 29 Mar 2004 10:44:39 +0200
- Subject: [ECOS] RAM overlap error
Hi,
I'm trying to write the simple "Hello Ecos world" program for the Altera
Excalibur epxa1db. My memory layout for the RAM startup mode is configured
as follows:
#include <cyg/infra/cyg_type.inc>
MEMORY
{
ram : ORIGIN = 0, LENGTH = 0x2000000
}
SECTIONS
{
SECTIONS_BEGIN
SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
SECTION_rom_vectors (ram, 0x40000, LMA_EQ_VMA)
SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
SECTIONS_END
}
My problem is this: During the link process, I get an error that the
"rom_vectors" and "text" sections overlap. If I look at the hello.map file,
the "text" section is at address 0x30000 and "rom_vectors" at the desired
0x40000. All the other sections follow on the "text" section.
Can anybody tell my why "text" is at 0x30000 and not after the "rom_vectors"
as I thought I specified and how I can fix this?
Thanks
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss