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 compi...
Altera_Forum
Honored Contributor
14 years agoYou've told objcopy the input file is 'S-records' - not surprising it doesn't DTRT!
Your elf file probably contains multiple sections (depending on what is in the linker script) that get loaded to different addresses. You'll need to extract these separately. 'objdump -p' will list the program sections (which are the ones you probably want), use the -j parameter to objcopy to select the section.