With PGI 11.8 and later, it’s still suffering the ‘overflow in R_X86_64_PC32 relocation’ issue on certain 64-bit Linux box if without spcifying -fPIC/mcmodel=medium for compile and link, but there is completely no this sort of issue on certain 64-bit Linux box even if without specifying -fPIC/mcmodel=medium for link and compile
I know this issue can be fixed by using -fPIC/mcmodel=medium, but tired always need to add/remove them by manual.
Just wondering
-
Which sort of Env. will trigger R_X86_64_PC32 relocation issue?
-
How to force to link with 64-bit offset based on the references instead 32-bit by default without using -fPIC/mcmodel=medium?
-
Or how to change the system Env. settings to avoid R_X86_64_PC32 relocation issue?
Thanks
Jerry