https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113211
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-01-03 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Why do you think this is a GCC bug rather than a glibc or systemd issue? Looking at the assembly that you provided: 0x00007ffff7bf869f <+15>: call 0x7ffff7bf7c80 <__tls_get_addr@plt> => 0x00007ffff7bf86a4 <+20>: mov 0x1c(%rax),%eax That looks correct, RAX is the return value of __tls_get_addr here. Note __tls_get_addr is not implemented by GCC but by glibc.