Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - relocation truncated to fit: R_MIPS_PC16: (3 Items)
   
relocation truncated to fit: R_MIPS_PC16  
Hi,

I am building a project for MIPSLE. I get this error during compilation:

"relocation truncated to fit: R_MIPS_PC16"

I checked and found that the source files (.cpp files) are being built and their object files are created but when these
 are being linked to create a DLL, the above error comes up.

Can somebody help me understand this compilation issue and help me solve it?

Thanks
Sunil
Re: relocation truncated to fit: R_MIPS_PC16  
Which version QNX and QNX  Momentics are You using ?
Is it QNX6.3.2 or QNX640 ?

As far as I can see/tell  this should  fixed with QNX6.4.1 and the appropriate 6.4.1SDP.
If not post your question into the tools forum here:

http://community.qnx.com/sf/discussion/do/listTopics/projects.toolchain/discussion.core_development_tools/

HTH,
Jeevan
Re: relocation truncated to fit: R_MIPS_PC16  
Hi Jeevan,

The problem occurs with QNX 6.3. I actually found the solution to this problem. Adding these options on the common.mk 
removed the error:

CFLAGS+=-fno-delayed-branch -Wc,-mlong-calls  \
	-Wc,-msoft-float -fno-inline-functions

I am not totally sure what these do but they allow me to proceed with my work :)

Regards
Sunil