https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100641
Hubert Tong <hstong at ca dot ibm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hstong at ca dot ibm.com --- Comment #2 from Hubert Tong <hstong at ca dot ibm.com> --- This was addressed in Clang last year. The AIX linker does not have the same weak reference semantics as some other linkers. The means that the TLS init function needs to be defined by the object file containing the definition of the `thread_local` variable if the language semantics does not make it so that all potential references occur in contexts where it is known that the initialization/finalization is constant.