This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Link Error from Hello.c for EB40
- From: "Lin Ming" <lm1121 at yeah dot net>
- To: ecos-discuss at sources dot redhat dot com <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 7 May 2002 10:52:20 +0800
- Subject: [ECOS] Link Error from Hello.c for EB40
- Reply-to: lm1121 at yeah dot net
Hi,
I modified the Makefile and target.ld. Now ld can find the needed files. But the make result is:
=======================================================================================
make: Nothing to be done for `hello.c'.
arm-elf-gcc -mcpu=arm7tdmi -c -o hello.o -g -Wall -Iusr/eb40/eb_install/include -ffunction-sections -fdata-sections hello.c
arm-elf-gcc -mcpu=arm7tdmi -nostartfiles -Lusr/eb40/eb_install/lib -Wl,--gc-sections -o hello hello.o -T/usr/eb40/eb_install/lib/target.ld -nostdlib
/home/Administrator/install/arm-elf/bin/ld: address 0x209a78c of hello.exe section .bss is not within region ram
collect2: ld returned 1 exit status
make: *** [hello] Error 1
======================================================================================
For EB40, the external SRAM address should be from 0x02000000 to 0x02080000, which is defined in target.ld.
Why the address of hello.exe will go to 0x0209a78c?
Best Regards,
Lin Ming
2002-05-07
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss