Mix PIC code and Non-PIC code
807575Nov 1 2006 — edited Nov 6 2006Hi folks,
I am trying to mix PIC and non-PIC code into one shared object library since some of the modules have significant amount of PIC overhead (it accesses a lot of global data and invokes a lot of external functions). The library works fine on Solaris 10 x86 platform, but I got the following errors on amd64 platform. I am using sun studio 11 by the way.
dl failure on line 714Error: failed /PrtReliabilityDir/JDKs/jdk1.6/jre/lib/amd64/server/libjvm.so, because ld.so.1: java: fatal: relocation error: R_AMD64_32: file /PrtReliabilityDir/JDKs/jdk1.6/jre/lib/amd64/server/libjvm.so: symbol (unknown): value 0xfffffd7ffe600000 does not fit
So is this a bug? Thanks,
-Xiaobin