Hi,

We met the following linking error when building our important application:


> …./ld: xxxx.o(.text.startup+0x13): unresolvable R_X86_64_TPOFF32 relocation 
> against symbol `__gcov_indirect_call’

Looks like that current “__gcov_indirect_call”’s TLS_MODEL is local exec. 

If recompiling xxxx.c with adding -ftls-model=initial-exec, the above linking 
error disappeared.

Our question is:

If __gcov_indirect_call can be linked into a shared library and can be 
referenced from non-PIC code ?

If So, gcc should generate more relaxed TLS mode for it.

Thanks a lot for your help.

Qing

Reply via email to