From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 80B483858019 for ; Wed, 13 Dec 2023 19:59:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 80B483858019 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 80B483858019 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702497577; cv=none; b=i6m5catGmQFIVHIRKWIoArNrBfY1vGQaB5ed8SxGfXcQb/J17saoccpQzR7yP/KnvWCqdjRzhyypZb7qyBaJDQMpeNsyn1aGDVHuCut/d+B6VSh33ekSHHW4aH8u4hFyzHdKzJSAa67TnfAKOxNChvXN9+V9KxrJBwR9N8eseT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702497577; c=relaxed/simple; bh=lQIKa21m0zyZYcMyigi3fJmObIwjETwFd9Kq4iXpjDM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=GG64DX9MwTqMOqdMxHjPRvmDlOPXkVLkz4uMupLALNlqhpwe6pKWGnP3ARksvhARyWwo4qcQxCaJHpPouU1DCOy27ZBR7Us8JYrjlycaA3HGfX58ASkD59YIx8o7Lewk98gSTJqe3zdK/IaKxrPWnYze7WWPB7gY73I513yCWLo= ARC-Authentication-Results: i=1; server2.sourceware.org References: <871qbqp4of.fsf@oldenburg.str.redhat.com> User-agent: mu4e 1.10.8; emacs 30.0.50 From: Sam James To: Florian Weimer Cc: gcc@gcc.gnu.org Subject: Re: Switching x86_64-linux-gnu to GNU2 TLS descriptors by default Date: Wed, 13 Dec 2023 19:58:43 +0000 Organization: Gentoo In-reply-to: <871qbqp4of.fsf@oldenburg.str.redhat.com> Message-ID: <87fs05c1qz.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Florian Weimer via Gcc writes: > I feel like I have asked this before. Currently, GCC uses calls to > __tls_get_addr to obtain the address of global-dynamic TLS variables. > On other architectures with support for GNU2 TLS descriptors, those are > used by default. > > Should we flip the default to GNU2 descriptors? Support has been > available in glibc for a long, long time. Is there any other reason for > not doing this? On the glibc side, the behavior regarding lazy > initialization and symbol binding does not change whether the old or new > interface is used. > I was planning on bringing this up but I was worried there was some reason we hadn't done it given it's been so long. Thank you!