On Wed, Sep 06, 2017 at 09:29:25AM -0600, Jeff Law wrote:
> > Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> > trunk?
> > 
> > 2017-09-05  Jakub Jelinek  <ja...@redhat.com>
> > 
> >     PR middle-end/82095
> >     * varasm.c (categorize_decl_for_section): Use SECCAT_TBSS for TLS vars 
> > with
> >     NULL DECL_INITIAL.
> > 
> >     * gcc.dg/tls/pr82095.c: New test.
> THanks.  Sorry about the breakage.  TLS didn't even cross my mind.
> Presumably the TLS initialization sections are readonly and copied into
> the actual thread specific locations.

.tbss section is just in headers (it implies zeroing the corresponding
thread private chunk) and .tdata is in relro part (the image; it might
contain relocations and we don't support separate images for parts without
and with relocations), copied to the thread private chunk.

        Jakub

Reply via email to