https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62130
Bug ID: 62130 Summary: ld.exe: nios2_work.elf: Not enough room for program headers, try linking with -N Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: qiweistar at 163 dot com I tried to compile a project in Ecplise on windows 7. gcc version 4.1.2 GNU ld version 2.17.50 20060817 The linker fails with Not enough room for program headers, try linking with -N ld.exe: final link failed: Bad value collect2: ld returned 1 exit status make: *** [nios2_work.elf] Error 1 I studied the man pages and all newsgroups, and I asked some newsgroups, but had no success. Is this an error or is there a possibility to surround this error ? Please help ! Thanks a lot, **** Build of configuration Nios II for project nios2_work **** make all Info: Building F:/program/FPGA/xieyifenxiyi/double_core/NiosII_0/nios2_work_bsp/ make --no-print-directory -C F:/program/FPGA/xieyifenxiyi/double_core/NiosII_0/nios2_work_bsp/ [BSP build complete] Info: Linking nios2_work.elf nios2-elf-g++ -T'F:/program/FPGA/xieyifenxiyi/double_core/NiosII_0/nios2_work_bsp//linker.x' -msys-crt0='F:/program/FPGA/xieyifenxiyi/double_core/NiosII_0/nios2_work_bsp//obj/HAL/src/crt0.o' -msys-lib=hal_bsp -LF:/program/FPGA/xieyifenxiyi/double_core/NiosII_0/nios2_work_bsp/ -msmallc -Wl,-Map=nios2_work.map -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o nios2_work.elf obj/main/main.o -lm d:/altera/11.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: nios2_work.elf: Not enough room for program headers, try linking with -N d:/altera/11.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: final link failed: Bad value collect2: ld returned 1 exit status make: *** [nios2_work.elf] Error 1