Forum Discussion
Altera_Forum
Honored Contributor
21 years agoI have extracted the source code for the elf2flt utility that was part of the Nios II IDE installation.
I found it in the altera/kits/nios2/examples/software/linux/utils directory. I moved this directory over to my Linux machine and ran dos2unix on all the files. I've been trying to get it configured and build properly, but I'm running into a problem with an "undefined reference to '__getreent' " error. The README for the elf2flt utility only discusses the inclusion of the libbfd.a and the libiberty.a libraries. I think I've pointed to the correct location for these, but the __getreent symbol is still not found. The interesting thing is that non of the elf2flt c files actually call the __getreent function. The errors point to the fprintf function. It must be using the __getreent. Does anyone know how to resolve this error?