TLS descriptors
A faster route to thread-local variables in shared libraries, replacing the call to __tls_get_addr with a pointer the dynamic linker picks after the fact.
The general model for thread-local storage in a library loaded late goes through an ordinary function call every time, with all the register saving that implies. Alexandre Oliva and Glauber de Oliveira Costa proposed an alternative in 2005–2006. The GOT gets a pair: a function pointer and an argument. If the variable turns out to live in the static TLS block, the dynamic linker plugs in a resolver that simply returns an offset.
The trick is a custom calling convention under which the resolver preserves every register except the return value. The caller saves nothing, and the common case becomes nearly as cheap as a static model. On AArch64 TLS descriptors are the default; on x86-64 they sit behind -mtls-dialect=gnu2, a flag that took the better part of twenty years to be seriously considered as the default.