https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142

--- Comment #10 from tomas_paukrt at conel dot cz ---
> What happens if you use -fPIE since that is designed to create executables
> that are position independent and would do the right thing as far as various
> initializations go ? 

It does not crash, because TLS model initial-exec or local-exec seems to be
used in this case.

> Or is this a crash you've observed in a shared library and has been reduced
> to a testcase in this form ? 

Yes, crash was observed in a shared library with static thread local variables.

Best regards

Tomas

Reply via email to