https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113874
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-02-11 --- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to H.J. Lu from comment #3) > Created attachment 57385 [details] > A patch > > Try this. This doesn't work properly. To work around in ld.so, _dl_tlsdesc_dynamic needs to save and restore ALL registers, which can be expensive.