You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the issue mentioned FreeBSD, this is a broader problem:
the current ARM64 code to load the TLS offset assumes a setup with
the non-default TLS model. This problem can also apply on some
configurations on other platforms.
ClosesGH-11236.
/* See https://github.com/ARM-software/abi-aa/blob/2a70c42d62e9c3eb5887fa50b71257f20daca6f9/aaelf64/aaelf64.rst
2781
+
* section "Relocations for thread-local storage".
2782
+
* The first entry holds a pointer to the variable's TLS descriptor resolver function and the second entry holds
2783
+
* a platform-specific offset or pointer. */
2784
+
TLSDescriptor *tlsdesc = where[1];
2785
+
2786
+
tsrm_tls_offset = tlsdesc->offset;
2787
+
/* Index is offset by 1 on FreeBSD (https://github.com/freebsd/freebsd-src/blob/22ca6db50f4e6bd75a141f57cf953d8de6531a06/lib/libc/gen/tls.c#L88) */
0 commit comments