
On Sunday 26 March 2006 8:59 am, Anders Johansson wrote:
Hi,
I'm trying to compile a program on x86_64, but when it gets to the final linking stage, I get the error
relocation R_X86_64_PC32 against `prefetch_C_withmask' can not be used when making a shared object; recompile with -fPIC
I've tried putting -fPIC every place I can find where it is legal to do so, but I still always get the same error
Does anyone know what this relocation is, and why I keep getting the error? I am very well acquainted with that error. You need to use -fPIC when compiling. I've done a lot of porting onto 64-bit platforms including x86-64. The above error also looks like you are mixing 32-bit objects and 64-bit objects in the same .so. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9