From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by sourceware.org (Postfix) with ESMTPS id 0EA133858D20 for ; Thu, 14 Dec 2023 05:47:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0EA133858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0EA133858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::72f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702532861; cv=none; b=p6kOwvHrK6PnrflvJxemr2An3vwwz1qqfzzz4diLDw94rJbRAbonvStc3dUXLhEL9ENcGKzvEAbHs9nGvk49xxjpJi3oG+qfqZIZrbNEJFNFyT3BxqxNpygZNyzGuzc8R0GgQzy34lSuyCRdWQddAik8u84zgXTieWpzBlmSwo8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702532861; c=relaxed/simple; bh=DifONTSkBbbt4/exguusD8YEdrkqSSsAC47PGt6tz98=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=OKgZ1K9WdGU2UuJedyC9Csk5C2AuM2vv8VudGXoNBNWyeZJwyKhGtNaWEhiY8PrLxL+sGUsTJSMm9yLIc0mhK+j4gf0d1Xuf+NTqzIP1f+BkLBe0PX6M7LjLXmcCgvyhICrPFk1I1ChexRGcf1Mi+QhjoNKHWZ+ruIo73Fb40Dg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-77f3c721c38so465532485a.1 for ; Wed, 13 Dec 2023 21:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702532858; x=1703137658; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uaQqoaPNO4clBFdwnE/k9WqudhBgyxKz1UvPIkY/ogU=; b=FqlRuo9Ski+V+YYA53B95F0s8k1Uyl4pyWr+NWNtBpWMybC9g9FCFHx706iens8IAK Mp6ZgAY5vJk1M4DplJbe6wDO7on2Sr8m7R8QUbRbHON4kF8I5hO2XNfpfmdMh+pZlm/J kqW3+z3BWP4UtXO6yRmBh718p760ThNX54vMpNJj9IT0qQQhGZp07FobX0f9qUf54Ee0 KtC4Sm3uuqtoYmev8q2KlK7nekR6e0RJhGGJyfUi+HGhZIVK0kbNXrAxjcaXM9cFTI4/ p5oK5/b7NyI33D02RkWKat/eIrDiiZIonIniWWU5gVkbNgvjOAPUE7FfK9fO478jps00 nQbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702532858; x=1703137658; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uaQqoaPNO4clBFdwnE/k9WqudhBgyxKz1UvPIkY/ogU=; b=i54/NdEUgfcybCm4RFmYcFbzG0RwLVAfcd/G5xVSMN+UftLjaiXn2UGQR8Tvd8UCSW 7msRaeKIT1CkhlSQkGLAAnkXL1IZjWrMwe2cV3rZXQeiukfZkNTl34+Vvdz/R1xVHF6v MUMK1Jel+Rg4H7KAOhvEbhPlVwcR9H0Pvv7Y9M3t/lBAe1coSRerX3hmhyNDlfSDM6SB Kbo4EOA4ubd9W+m5bdSxIKuMPo7zbwovDy8nmHjS6l5zHSsN8UqVCtaRxbehxFWiXPiN 9lAviixGX/NKA/DNhVhODC28TryDh1DQoyJU+++FPcfknuxiH6PBc3cKfjYgbS20n1Xx 1onw== X-Gm-Message-State: AOJu0YzOUqz7QuJhYkmCJNIW9sn0Kn3HvoudfvsKvuwirrG6V3f2ZoxB rwoKHlVP4czc4tdXbLEctKcRHFm+sW+EAb7hpAM= X-Google-Smtp-Source: AGHT+IFt5jUYvq1TBbta08g350zFEWh7XBwYgG9WHd/9uqfgpIRzkFc/zPaa6Ep3bUH4YDpdAL3AE6MxcCuw9kAGV7E= X-Received: by 2002:a05:620a:558b:b0:77e:fba4:3a42 with SMTP id vq11-20020a05620a558b00b0077efba43a42mr10206527qkn.152.1702532858241; Wed, 13 Dec 2023 21:47:38 -0800 (PST) MIME-Version: 1.0 References: <871qbqp4of.fsf@oldenburg.str.redhat.com> In-Reply-To: From: Andrew Pinski Date: Wed, 13 Dec 2023 21:47:26 -0800 Message-ID: Subject: Re: Switching x86_64-linux-gnu to GNU2 TLS descriptors by default To: Florian Weimer Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Dec 13, 2023 at 1:08=E2=80=AFPM Andrew Pinski w= rote: > > On Wed, Dec 13, 2023 at 6:19=E2=80=AFAM Florian Weimer via Gcc wrote: > > > > 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 fo= r > > not doing this? On the glibc side, the behavior regarding lazy > > initialization and symbol binding does not change whether the old or ne= w > > interface is used. > > Just FYI, the last time this was asked was 6 years ago but maybe > things has changed since: > https://inbox.sourceware.org/gcc-patches/CAMe9rOp_68qpdLz25PoHa1ewB6pGQuV= v_+H5bXGFhU05MH9+Vg@mail.gmail.com/ Oh I noticed that was a bug filed before that asking for testcases to be added for it on x86_64 but it looks like it was not implemented: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48868 So it might even be broken. Thanks, Andrew > > Thanks, > Andrew > > > > > Thanks, > > Florian > >