Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

unable 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