Compiling a shared lib problems

Marcus Clyne bu.eugaia@gmail.com
Fri Feb 12 10:02:00 GMT 2010


Hi John,

Thanks for responding.

John Graham wrote:
>> shared.o: relocation R_X86_64_PC32 against undefined symbol `my_func' can
>> not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Bad value
>> collect2: ld returned 1 exit status
>>     
>
> Have you tried adding -fPIC when you link?
>
>   
Yes, I have.

Marcus.



More information about the Binutils mailing list