This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Build Error for new Hardware
- From: Raghu Bulusu <RBulusu at reptron dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 1 Jul 2005 14:37:47 -0400
- Subject: [ECOS] Build Error for new Hardware
Hi,
I am getting the following error when I am building ecos for a custom
hardware board with SH7750 on it. What could be possibly wrong
make[1]: Leaving directory
`/ecos-c/MDP/ecos/sh7750/mdp7750_build/hal/common/current'
/ecos-c/MDP/ecos/sh7750/mdp7750_install/lib/libtarget.a(redboot_main.o): In
function `valid_address':
make: Leaving directory `/ecos-c/MDP/ecos/sh7750/mdp7750_build'
/ecos-c/cygwin/opt/ecos/ecos-cvs/packages/redboot/current/src/main.c:160:
multiple definition of `_cyg_start'
src/stubrom/gdb_module.o:/ecos-c/cygwin/opt/ecos/ecos-cvs/packages/hal/commo
n/current/src/stubrom/stubrom.c:57: first defined here
/opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf
/bin/ld: Warning: size of symbol `_cyg_start' changed from 24 to 656 in
/ecos-c/MDP/ecos/sh7750/mdp7750_install/lib/libtarget.a(redboot_main.o)
/opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf
/bin/ld: address 0x8c00538 of
/ecos-c/MDP/ecos/sh7750/mdp7750_install/bin/gdb_module.img section .data is
not within region ram
/opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf
/bin/ld: address 0x8c05794 of
/ecos-c/MDP/ecos/sh7750/mdp7750_install/bin/gdb_module.img section .bss is
not within region ram
collect2: ld returned 1 exit status
make[1]: *** [/ecos-c/MDP/ecos/sh7750/mdp7750_install/bin/gdb_module.img]
Error 1
make: *** [build] Error 2
This is what my ..rom.ldi file look like
MEMORY
{
ram : ORIGIN = 0x8c000000, LENGTH = 0x04000000
rom : ORIGIN = 0x80000000, LENGTH = 0x01000000
}
SECTIONS
{
SECTIONS_BEGIN
SECTION_vectors (rom, 0x80000000, LMA_EQ_VMA)
SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_rodata1 (rom, ALIGN (0x8), LMA_EQ_VMA)
SECTION_rodata (rom, ALIGN (0x8), LMA_EQ_VMA)
SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_gcc_except_table (rom, ALIGN (0x1), LMA_EQ_VMA)
SECTION_data (ram, 0x8c000000, FOLLOWING (.gcc_except_table))
SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA)
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
SECTIONS_END
}
I observed that the address pointed by error is no where in the region of
ram or rom.Any help would be great.
Thanks,
Raghu
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss