Avoid privatization of TLS variables
Thu Sep 25 15:37:00 GMT 2014
On Thu, Sep 25, 2014 at 8:24 AM, Ian Lance Taylor <firstname.lastname@example.org> wrote:
> On Wed, Sep 24, 2014 at 6:58 PM, Jan Hubicka <email@example.com> wrote:
>> b: 00 00
>> 9: R_X86_64_TPOFF32 __gcov_indirect_call_counters_ltopriv
> Look at the .o file where __gcov_indirect_call_counters_ltopriv is
> defined. That .o file must have the symbol marked as STT_TLS and it
> must be defined in a section with the SHF_TLS flag. If that is not
> true, then that is your problem.
SHF_TLS isn't required.
16: 0000000000000008 8 TLS GLOBAL HIDDEN COM
17: 0000000000000008 8 TLS GLOBAL HIDDEN COM
are also sufficient.
More information about the Gcc-patches