Due to a gcc bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066), there are binaries¹ in the wild² that call __tls_get_addr() with an improperly aligned stack. They will crash if anything in the subsequent call chain uses e.g. MOVAPS to store to the stack. __tls_get_addr() should be annotated with __attribute__((force_align_arg_pointer)) on x86-64 to avoid this bug. ¹ Many games using the Unity engine. ² Fedora 26 beta
Created attachment 10152 [details] proposed glibc patch
Sorry, I didn't see this bug. Mine has more references, so closing this one as a duplicate. *** This bug has been marked as a duplicate of bug 21609 ***
Note that patch does not work because we are not ready to move the GCC requirement to a version which supports force_align_arg_pointer on x86-64.