This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Link Error from Hello.c for EB40


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]