GCC assumes that the GNU2 TLS descriptor function does not clobber
vector registers:
GNU2 TLS descriptor calls do not follow psABI on x86_64-linux-gnu
<
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113874>
Is this a GCC bug? Or do we need to fix glibc?
There are two ways to fix this in the dynamic linker: perform a full
context switch (like for lazy binding, probably using XSAVE/XRESTOR), or
perform all TLS allocation during relocation, so that the slow path that
clobbers vector registers is gone.
Thanks,
Florian