From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 1B7F7385841F for ; Wed, 13 Dec 2023 21:08:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B7F7385841F 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 1B7F7385841F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1032 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702501725; cv=none; b=Kv58suVX38SALUfJ/opJZxunvLi+uDv11nJeQinO488bFizKd7rMtWnv9+4Ocv+6PxLtxDszB/K0IwH6DrE6lDwSjApV325dbVMp7o+44aXb/wyNG2KPK9uzlWSOq/Kck68qQMIPtW3R66gigOML3NonuF/97aKq8LGdytSNpYU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702501725; c=relaxed/simple; bh=/JLNF2Fdwyi4uxWGZr3qucxi5DrIHNy4pPWEjZOkbbo=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=DWAU+SpSACOTqg6Ah4njIeFnd9yMzva3jHQFfXVMLAxCVyV2FRjp+Ph1XDb7A56BlopbwcMNrwgMrPSvwTCCfGhsf55AeH2GhLrVhr/RYQifuVU6idoJlfAdyij7zSfUYmeUShD89QlZrBZ6T/Bzy5lRBmDy37tQOE9hR3TQC1M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-28ae571b2edso790207a91.3 for ; Wed, 13 Dec 2023 13:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702501723; x=1703106523; 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=o0ulu7J14CinENjMVMx1fy5f9zLdRWCw38gFdltbcv0=; b=hqzCxD0a0m2q6E2J0PoCJwm5uo0YbokL5KclbjU4JQznTf4LjlkDNy4c0pmkGncpZs N7EC4aGY0ZSmCIuipSeo2AG+sXN9x6bHdJEOaAv/T3B9uZ/cHym70p7zngYAJ6lLeWtF zSj9Kk4X3EdCqidRXhnmK68xZMg6ko6pEW2edR79Lj6FXp/ce5IMBXeLX8P5wmvMz0bo rG9PkhX5DqiTzWd9w2XbaRqkgdEaqjQF+NfyVJylkAC3iiwxhAwQQOoSConpW/YbXt6e R1fhsr1xxK4hy7UhQ6GJGqPfjaYIa2gJCL5onCbgvMyc879qxAeYzIjyy+9dZh3Bj/EB MNtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702501723; x=1703106523; 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=o0ulu7J14CinENjMVMx1fy5f9zLdRWCw38gFdltbcv0=; b=YiiwusY8VKIqcbIrT5If8mtuwDNPqdx7J1peuvnSOXnXlJ7Wp1LNp8ot7JNQWM+lPv sSZJ2+s968z8RaGxw1+leUbC6v6nrWM77+bNSDBjdF+k5mhieCM2A0yXnYplJAXeFEmJ Z11Z3IzhCduiIfwzFpk5m015gfrvU0lcaKHBX4Bp+AxuenLH1Ol5Nz33YOFtlBRqgLpa T3PSmv5JgkPF/sK/W85HEoqL4AjyRCzd48gVRlfSaY/D7+6zbV6JP2yms1sxKuHaQKBz u9xNla0+m/FVSL4TsSWcPdh/TGxxRmXyCC0JGGJO60vGMRocqAPwZU15iUVhu20p6N0c K6zA== X-Gm-Message-State: AOJu0YzAxjUB4R+ioVol+5fza8A/PGgydIhaEKITk5BLySDuvfpkA0Ma mZtrQlaJAIqRfka0eBls1F21wsxPZ6dPsDiFdyxweN4Z9Ds6CQ== X-Google-Smtp-Source: AGHT+IEIsxn6lgfA+zLYE8esRTX+bAbYVNEgOaDSXb567Byr5bDq5WJCA2jTUHwBY9NZttoz8yLbXKTfTQTXarp9T6w= X-Received: by 2002:a17:90a:fc8e:b0:286:d1d6:9a61 with SMTP id ci14-20020a17090afc8e00b00286d1d69a61mr4105917pjb.7.1702501723007; Wed, 13 Dec 2023 13:08:43 -0800 (PST) MIME-Version: 1.0 References: <871qbqp4of.fsf@oldenburg.str.redhat.com> In-Reply-To: <871qbqp4of.fsf@oldenburg.str.redhat.com> From: Andrew Pinski Date: Wed, 13 Dec 2023 13:08:31 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 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 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. 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_68qpdLz25PoHa1ewB6pGQuVv_= +H5bXGFhU05MH9+Vg@mail.gmail.com/ Thanks, Andrew > > Thanks, > Florian >