https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another option is executable testcase trying to dlsym __tls_get_addr_internal
(but that is not cross-compilation friendly), or perhaps nm or readelf on the
dynamic linker (but that is not really that easy for cross-compilation either,
one has to find it in a sysroot etc.).
Perhaps the glibc version check and if that check fails and not
cross-compiling, try the dlsym way?

Reply via email to