Altera_Forum
Honored Contributor
16 years agocompiling application with -elf2flt suffered errors "unexpected reloc type"
Hi,
I suffered errors "ERR:unexpected reloc type R_NIOS2_UJMP" and "ERR:unexpected reloc type R_NIOS2_CJMP", total 480 these errors, while compiling my application runing "nios2-linux-gcc -g -o APP_DEMO -lc -lm -lpthread ${OBJ} -elf2flt". and it's ok compiling without -elf2flt . I doubt the tool nios2-linux-elf2flt may be with some bugs. I find the source code(elf2flt.c) of the tool in the directory nios-linux/elf2flt/. it just prints out errors when encounters some relocation types, such as R_NIOS2_UJMP,R_NIOS2_CJMP and so on. Is there anyone suffered this problem? I just try to fix thus unsupported relocation types ,modifying the source elf2flt.c, and I need helps. Any experience or infomation or tips are appreciated, thanks! Attachment:my makefile and make log