Forum Discussion
Altera_Forum
Honored Contributor
14 years agounable to link an executable image
Hi,
I'm jus triying to compile and link a simple "hello world" application with gcc nios2-linux-gnu-gcc (version 4.1.2) but gcc does not reconize -elf2flt parameter as we can see in the compiler output: jordi@debian:$ nios2-linux-gnu-gcc hello.c -o hello.exe -elf2flt/home/jordi/projects/vdm-1/system/current/nios2-linux/toolchain-mmu/x86-linux2/bin/../lib/gcc/nios2-linux-gnu/4.1.2/../../../../nios2-linux-gnu/bin/ld: warning: cannot find entry symbol lf2flt; defaulting to 0000137c
The output file remains in elf format instead of desired flat. please help, I'm realy stuck at this point :( thanks
12 Replies
- Altera_Forum
Honored Contributor
thanks.. I have it working..
just for curiosity,, I have downloaded the toolchain and I gone in each directory coz I am trying to find /build_nios2/staging_dir/bin/ from your setting.. Couldnt find it... Is this something that you have put or generated?. BTW do I need to make the toolchain by MAKE?... - Altera_Forum
Honored Contributor
Hi,
I've got the my toolchain yet compiled from a colleague, so I didn't to make it. So, if you can't find the binaries, you should first make the toolchain project.