This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
no memory region speficifed for section..... followed by .gcc_except_table is not within region rom in making tests
- From: "Tracy Jones" <tracy at stratalight dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 16 Apr 2002 11:24:35 -0700
- Subject: [ECOS] no memory region speficifed for section..... followed by .gcc_except_table is not within region rom in making tests
Hi - I just loaded the latest and greatest ecos from cvs and
built it for linux synthetic. I am using binutils 2.12 and gcc 3.0.4.
I get the following errors when building the tests.
gcc -c -I/home/tracy/ecos/install/include
-I/swdev/home/tracy/newecos/ecos/packages/hal/common/current
-I/swdev/home/tracy/newecos/ecos/packages/hal/common/current/src
-I/swdev/home/tracy/newecos/ecos/packages/hal/common/current/tests -I.
-I/swdev/home/tracy/newecos/ecos/packages/hal/common/current/tests/
-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections
-Wp,-MD,tests/cache.tmp -o tests/cache.o
/swdev/home/tracy/newecos/ecos/packages/hal/common/current/tests/cache.c
gcc -g -O0 -nostdlib -Wl,--gc-sections -Wl,-static
-L/home/tracy/ecos/install/lib -Ttarget.ld -o
/home/tracy/ecos/install/tests/hal/common/current/tests/cache
tests/cache.o
/swdev/tools/ecos-3.0.4/H-i686-pc-linux-gnu/bin/../lib/gcc-lib/i686-pc-l
inux-gnu/3.0.4/../../../../i686-pc-linux-gnu/bin/ld: warning: no memory
region specified for section `.rel.text'
/swdev/tools/ecos-3.0.4/H-i686-pc-linux-gnu/bin/../lib/gcc-lib/i686-pc-l
inux-gnu/3.0.4/../../../../i686-pc-linux-gnu/bin/ld: warning: no memory
region specified for section `.rel.text.cyg_start'
/swdev/tools/ecos-3.0.4/H-i686-pc-linux-gnu/bin/../lib/gcc-lib/i686-pc-l
inux-gnu/3.0.4/../../../../i686-pc-linux-gnu/bin/ld: warning: no memory
region specified for section
`.rel.text._Z41__static_initialization_and_destruction_0ii'
..
..
..
..
/swdev/tools/ecos-3.0.4/H-i686-pc-linux-gnu/bin/../lib/gcc-lib/i686-pc-l
inux-gnu/3.0.4/../../../../i686-pc-linux-gnu/bin/ld: address 0x0 of
/home/tracy/ecos/install/tests/hal/common/current/tests/cache section
.gcc_except_table is not within region rom
Here is the generated target.ld
STARTUP(vectors.o)
ENTRY(_start)
INPUT(extras.o)
GROUP(libtarget.a libgcc.a)
MEMORY
{
rom : ORIGIN = 0x1000000, LENGTH = 0x800000
ram : ORIGIN = 0x2000000, LENGTH = 0x800000
}
SECTIONS
{
.vectors 0x1000000 : { . = .; KEEP(*(.vectors)) } > rom
.text ALIGN (0x4) : { _stext = .; *(.text*) *(.gnu.warning)
*(.gnu.linkonce*) *(.init) } > rom _etext = .; PROVIDE (etext = .);
.fini ALIGN (0x4) : { . = .; *(.fini) } > rom
.rodata1 ALIGN (0x8) : { . = .; *(.rodata1) } > rom
.rodata ALIGN (0x8) : { . = .; *(.rodata*) } > rom
.fixup ALIGN (0x4) : { _FIXUP_START_ = ABSOLUTE(.);
*(.fixup) _FIXUP_END_ = ABSOLUTE(.);} > rom
.rel.got ALIGN (0x1) : { *(.rel.got) } > rom
.gcc_except_table ALIGN (0x1) : { _EXCEPT_START_ =
ABSOLUTE(.); *(.gcc_except_table) _EXCEPT_END_ = ABSOLUTE(.);} > rom
.data 0x2000000 : { __ram_data_start = ABSOLUTE(.);
*(.data*) _GOT1_START_ = ABSOLUTE(.); *(.got1) _GOT1_END_ = ABSOLUTE(.);
. = ALIGN(8); __CTOR_LIST__ = ABSOLUTE(.); KEEP(*(SORT(.ctors*)))
__CTOR_END__ = ABSOLUTE(.); __DTOR_LIST__ = ABSOLUTE(.);
KEEP(*(SORT(.dtors*))) __DTOR_END__ = ABSOLUTE(.); . = ALIGN(32);
KEEP(*( SORT (.ecos.table.*))); _GOT2_START_ = ABSOLUTE(.); *(.got2)
_GOT2_END_ = ABSOLUTE(.); _GOT_START_ = ABSOLUTE(.);
_GLOBAL_OFFSET_TABLE_ = ABSOLUTE(. + 32768); _SDA_BASE_ = ABSOLUTE(.);
*(.got.plt) *(.got) _GOT_END_ = ABSOLUTE(.); *(.dynamic) *(.eh_frame)
_SDATA_START_ = ABSOLUTE(.); *(.sdata*) } > ram __rom_data_start =
LOADADDR(.data); __ram_data_end = .; PROVIDE(__ram_data_end = .); _edata
= .; PROVIDE (edata = .);
.sbss ALIGN (0x4) : { __bss_start = ABSOLUTE (.);
_SBSS_START_ = ABSOLUTE(.); *(.sbss*) _SBSS_END_ = ABSOLUTE(.);
*(.scommon*) } > ram
.bss ALIGN (0x10) : { . = .; *(.dynbss*) *(.bss*) *(COMMON)
} > ram __bss_end = .;
__heap1 = ALIGN (0x10);
. = ALIGN(4); _end = .; PROVIDE (end = .);
}
Any hints??
> Tracy Jones
> Stratalight Communications
> tracy@stratalight.com
> 408-961-6278
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss