Board logo

标题: 为什么IDE编译过程中出现collect2: ld returned 1 exit status? [打印本页]

作者: huxiao9178    时间: 2009-10-13 21:21     标题: 为什么IDE编译过程中出现collect2: ld returned 1 exit status?

请哪位高人能知道,为什么IDE编译过程中出现collect2: ld returned 1 exit status?
当我run工程时出错提示:The Nios II ELF executable does not exist. Please verify that the project led_project_0 built successfully

求救各位达人指点……

一下是我的编译:
**** Incremental build of configuration Debug for project led_project_0 ****
make -s all
Compiling LED_TEST.c...
Linking led_project_0.elf...
/cygdrive/c/altera/kit/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region onchip_memory_0 is full (led_project_0.elf section .rwdata). Region needs to be 2416 bytes larger.
/cygdrive/c/altera/kit/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [00000020 -> 00000233] overlaps section .exceptions [00000020 -> 000001c7]
/cygdrive/c/altera/kit/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/mno-hw-mul/libsmallc.a(writer.o)(.text+0x1c): In function `_write_r':
/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libc/reent/writer.c:57: Unable to reach errno (at 0x00000020) from the global pointer (at 0x0000c918) because the offset (-51448) is out of the allowed range, -32678 to 32767.
collect2: ld returned 1 exit status
make: *** [led_project_0.elf] Error 1
Build completed




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0