[General] Nios2 g++ compile error: unexpected reloc type R_NIOS2_UJMP

Status
Not open for further replies.

erikwikt

Junior Member level 1
Joined
Nov 21, 2010
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
www.pelegro.se
Activity points
1,445
Hi everyone.

I'm trying to compile an open source project and run it on a Nios2 soft-core processor running uClinux. I should already add here that the program was not originally written as an embedded application.

The project contains round 50 files so there is a lot of compiling. So I compile all the files individually using Alteras Nios2 gcc/g++ compiler together with the -c option that produces object files.

So far so good, I get some warnings but nothing more than I get when compiling it with Gnus gcc. However, when I try to link the all the files together into a single file I get this strange error message:


uClinux can't handle ELF files so I must convert (correct me here) the final file from ELF to FLT in order to run it on my platform. The linker can do this if I use the -Wl,-elf2flt option. This is where the next wired thing comes, if I compile/link the final file without the -Wl,-elf2flt option everything works out fine but with it I get the error messages above.

I been searching on Google about this matter but there is not much to be found. Here is the link that I found https://www.alteraforum.com/forum/showthread.php?t=20134

Is there anyone that knows what can be wrong? If you need any files or information don't hesitate to ask.

Thank you in advance,
Erik
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…