[ECOS] the freebsd stack influence the program"hello world"?

venice venice.tu@live.com
Mon Mar 17 18:25:00 GMT 2008


Hi, my board is sam7x256ek; I take the redboot off and when I build the 
program "hello world" without any network configuration it gets the right 
result.
        the hello.c :
#include <stdio.h>

int main(void)
{
  printf("Hello, eCos world!\n");
  return 0;
}

     But if I joined the three packages "Common ethernet support." "FreeBSD 
Stack." and "Networking." I get the following messages:

arm-elf-gcc -I/d/ecos/project/sam7x/system/at91sam7x256_sys_network_01_install/include 
hello.c -L/d/ecos/project/sam7x/system/at91sam7x256_sys_network_01_install/lib 
 -Ttarget.ld -nostdlib
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x143f64 of a.out section .text is not within region rom
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x143f64 of a.out section .fini is not within region rom
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x14630c of a.out section .rodata is not within region rom
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x14630c of a.out section .rodata1 is not within region rom
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x14630c of a.out section .fixup is not within region rom
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x14630c of a.out section .gcc_except_table is not within region rom
/ecos-d/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
address 0x24dfb8 of a.out section .bss is not within region ram
collect2: ld returned 1 exit status


    The flash address ranges from 0x10000 to 0x14000; but I cannot 
understand the same program which has nothing to do with the network 
interface but get the different results!
    So is there anything wrong? thanks!


Regards,
Venice 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list