'relocation truncated to fit' even with mcmodel=medium

Dear There,
I am trying to compile my code in pgf90. It gives the following error even after using mcmodel=medium.

: relocation truncated to fit: R_X86_64_PC32 misc_
cgtools_v09.1.o(.text+0x2dbd): In function

Please can any one help to fix this.

Kind Regards

Hi Senthil,

Is this symbol in a library? Is so, is the library dynamically or statically linked? Was it compiled with or without “-fpic”? Did you compile all objects in you application with “-mcmodel=medium”?

  • Mat