https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91628
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> --- The use of the function is for the garbage collector to be able to scan native TLS data. The logic of said function pretty much matches what the glibc macro __TLS_GET_ADDR is doing.