From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 3F8973858C74 for ; Thu, 16 Nov 2023 05:23:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F8973858C74 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 3F8973858C74 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::629 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700112233; cv=none; b=aBnT3jg80GSXFt68rF0348jSMEtojJIY0seur8lVRFzTi2eQR9ziFgAox1MPLcYcAFkacB9t0sGbZORVpRuS/aXw+XfzfdfsBepPK/lieUun3ZLIDTJ+BkHuBRvGsi1pywgDDB8m/Zck8wposs8q8yiQ5dGLtkrcNkzwI7HDICw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700112233; c=relaxed/simple; bh=PubOuiGkKdp2Ed529zQZ/pn6YQAQw/cfC0AL0HSMe6w=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=QZqFgqwMwgQT0c3XbQQEd5DB3BhGcqJwfOcCE7IZGz9+GuxeUanWLBs/JdZ6bKTYFTz5fIzxOVolSpm9SUOQmiMrWzFMRrnx4zGfzW92rIrax3s9CBAcfvT18p+qoR60yOvwRcfodQSfaT+ruy3F42oTjqQ3qXNEXrdATvvRoss= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1cc4f777ab9so4183795ad.0 for ; Wed, 15 Nov 2023 21:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700112231; x=1700717031; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ng5knZy0e4cCdY2vRrHNhZcXiaFEG4yh8E8vFO3vibs=; b=AmqxtsT7DxflUkGdfZN3iMyBYCcdWA6iLekZwfykdSMGHxEz2oGk1oQrWBiY2V+x+E BKzcaBb1VVJABLq2mNbt7lisCWhJmAoRfxLLildbfDJpIRW3lXpclQrsAi/HtWeZQKLm DoFgLDimfPoidYe2q4sGS2K3oG9mN2Hb0SA5UEbtu1LL/THezfxUaZtYkT/+AE0vciYV DXWFxTahy/njteclQ0MonCb50CqoOSNQb+3TzChtsjO4QblUWBU6vv1s3QwTtGsI7BNk xOAcr0waVJaTyJ4L/Tt0VDO/b1xgAFS/5GThGZgOJmp01TVIcgcpm5MNxHQtXqPwrAs6 5u4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700112231; x=1700717031; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ng5knZy0e4cCdY2vRrHNhZcXiaFEG4yh8E8vFO3vibs=; b=MrxeKHgKgpH1jnw1lJ5pXV4M1a9jAqudGpOOZNmlP2KCDMXr8ffC7E84sJmtfq0EsT m6xCoaHzQKsH1O495iHdBFlfvbZb7IUURpXeLFOiOLqwfNS4BCE3oX7vi2ziQBioKU8I iJRizWTQTrgmiUqszs5AEEnmYfJg9s2RN0ujhIKX+7t+rUIqo40gEHJ8cBnIZTJ7byC8 RvZduXDaao/mbSfiUNToeW/jntkiprd5CIZBniy56C2RlZ7DP4Wl8q4Q3r/4DgSCxxRJ 7xdyhAnVpWuS3Y6FTT3kEWiF9uQEPoAX+HVS8aKskItNljkFmuWf+g6wpB6HMg8kWbOX /MGw== X-Gm-Message-State: AOJu0YyNiNp3s01efb4gutpmgfx73xw4lYh/L7axbWdHF9O44XAitdD1 D/eKtlrcqKg+bNB0eawlr34KWae0SZ8LXA== X-Google-Smtp-Source: AGHT+IGcVnAP/ksNVLRPITtV4Hrmxb6IwrPgbQQ9rbNm9hpknop1+Ge+v8f1R5o/JzMTI8TRusrDfw== X-Received: by 2002:a17:902:bd97:b0:1b8:b382:f6c3 with SMTP id q23-20020a170902bd9700b001b8b382f6c3mr6952786pls.13.1700112231115; Wed, 15 Nov 2023 21:23:51 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id w12-20020a170902d3cc00b001c74df14e6fsm8238360plb.284.2023.11.15.21.23.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Nov 2023 21:23:50 -0800 (PST) Message-ID: <55ee8943-babd-4fb2-aaab-ca88e37683b7@gmail.com> Date: Wed, 15 Nov 2023 22:23:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] RISC-V: Implement TLS Descriptors. Content-Language: en-US To: Tatsuyuki Ishi Cc: gcc-patches@gcc.gnu.org, Rui Ueyama , ruiu@bluewhale.systems, kito.cheng@gmail.com References: <20230817181308.122802-2-ishitatsuyuki@gmail.com> <20230908104923.31154-1-ishitatsuyuki@gmail.com> <54cba99d-fa53-4ecd-b850-f8f7e2c8a21a@gmail.com> <549C3D78-7D43-4D7D-B0E1-0271B1E4CBDA@gmail.com> From: Jeff Law In-Reply-To: <549C3D78-7D43-4D7D-B0E1-0271B1E4CBDA@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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,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 11/15/23 18:51, Tatsuyuki Ishi wrote: >> On Nov 16, 2023, at 10:07, Jeff Law wrote: > > Based on what I have read in the AArch64 backend, there are two ways to > do this: introduce a custom calling convention, or put in a RTX insn > that covers the whole sequence. Ideally we should do the first, but then > there’s the label issue and it’s quite a bit more complicated. So I’m > sticking with this for now. As I said, I think we're OK here. We can always revamp as we get experience with the implementation -- I don't think any of the stuff we're talking about is an ABI change, they're just implementation details. > > Sorry for all the delay on this. My progress has been (and still) > blocked on supporting relaxation of TLSDESC in binutils (turns out you > can’t run static binaries without relaxing it first). But that doesn’t > seem exactly easy to do either, because relaxation that involves GOT > elimination isn’t something we have in the RISC-V backend. Note that binutils is due for another release in the next month or two. It'd certainly be helpful to have any issues there resolved in time for that release. > > I’ll try to send a new version of this patch and get this unblocked on > GCC side first. Sounds good. We can always guard its use behind a feature test for GAS support. Jeff