Forum Discussion
Altera_Forum
Honored Contributor
21 years agoThanks for all your advice. I'm moving forward, but I'm still running into problems with converting the file to a flat binary.
I have used the Rules.mak file as a reference. It is located at "altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.application_0.1.0/templates" on my Windows machine. I have also tried using the elf2flt.ld linker script located at "com.microtronix.nios2linux.application_0.1.0/scripts". No matter what I try, I keep getting an error from nios2-elf-elf2flt that states "cpuload.elf: Input file contains no relocation info". However, if I perform a "nios2-elf-objdump -f cpuload.elf", then I get the following results: cpuload.elf: file format elf32-littlenios2 architecture: nios2, flags 0x00000011: HAS_RELOC, HAS_SYMS start address 0x00000000 Doesn't the output from objdump indicate that the elf image does indeed have relocation information? Did I compile elf2flt improperly on my Linux machine? Any other suggestions?