[Mesa-dev] [PATCH] meson: add toggle for TLS support in GLX

Adam Jackson ajax at redhat.com
Mon Jan 28 17:00:13 UTC 2019


On Sat, 2019-01-26 at 13:56 +0100, Patrick Steinhardt wrote:

> Unfortunately, I'm not aware of any easy way to do this. The
> problem is not due to the compiler, as the program compiles and
> links just fine with musl libc. Instead, this is a runtime issue
> that happens when dlopen'ing shared objects with the
> "initial-exec" TLS model. And as far as I understand, the error
> only occurs if the PT_TLS segment size of the loaded shared
> object exceeds the space preallocated for it by the libc.

You can hit that failure mode with glibc too, it just requires many
more things trying to use TLS. Possibly we should reconsider whether
initial-exec is really that important for performance anymore or if we
can get away with global-dynamic.

- ajax


More information about the mesa-dev mailing list