From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id CCEEC3858D35 for ; Thu, 17 Aug 2023 18:09:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CCEEC3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1b89b0c73d7so117355ad.1 for ; Thu, 17 Aug 2023 11:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692295756; x=1692900556; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NK1n+NUvWmdWS22Pikp1ecl/G53wHVpbWbXhdxPU0do=; b=mBORse/m3oKUE5pcecNkB4/xAiE+tFPpw4ZvtghvTl7pBEJaw5wkySmOct13m4Q6Ys Py9yoeHdeHbTpB3k8EXiBP6oSjUUoRLVN9X8BNkdkUL5wLAIAvqo89Auxr9Qgf9Dh+ct 9EhRYx3z50eXCq1Qh8VnwFd6Rk/xrATmPM1pVmHtmQoXqrQpqJnVmPqs2i2XCKN0BTJ5 4UF1o8isGUdcyjHCf3ln7nz6FmZxVFjNpTRb8bYVYQ83ynm6bB8Gal9FOFhQfOYWBXbW JfdSwSu4eJY3XE0PJsPEqarDqiB1SzS+Xefqjp+P+dV9dVOkZnU2V9/o2QXxK3hcrcIB Jh2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692295756; x=1692900556; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NK1n+NUvWmdWS22Pikp1ecl/G53wHVpbWbXhdxPU0do=; b=UJKGXNsFAxVHgUO9qQ/9HfQ+SpJ3wB1SlN5nugi3hNSzBdEWV74ZfdW9khFFho1VhU Sgr1SG2vmT547sXKu54M/acOFsZK/ntieDcGwWWDZf9ddSU8FhXU4h0WW+7CRFP+QF90 v1V73rplFlUdfdrc5lCztkikw692Ysb4HqkvluwwY0BUNv3zvAAGKCQSiKWuuNu8nLH+ IydyCqVOJ0iynGj5DntbcozPB2UC7d8nG1WMPlk+lwiPHzZdDbRtk7hr8H6fCS+ZQVcZ XimaRitxUvnPzZMtCPF4dtgYRHWgent5T/XWirl+TuhV/feOQOFm9sIXzf8HRnbRx8aj uSfw== X-Gm-Message-State: AOJu0Yw04ogeGGPaNCqXcAourilM/mGh05XZMx0kLi430gkLKfgj1lKQ GA5oxF3mCyfXg9Bx5v5yUQTku7FAkccXv2+e X-Google-Smtp-Source: AGHT+IHZSKeLl0T9UtygrKD1XTOXDYwCqhv/mUSl7mJJ5rIg8on6Iu9JBoRLL4bEMIjB0UwXT+rZmw== X-Received: by 2002:a17:902:d491:b0:1b8:35fa:cdcc with SMTP id c17-20020a170902d49100b001b835facdccmr142106plg.5.1692295756123; Thu, 17 Aug 2023 11:09:16 -0700 (PDT) Received: from localhost (zz20184013906F627101.userreverse.dion.ne.jp. [111.98.113.1]) by smtp.gmail.com with ESMTPSA id c9-20020a170902c1c900b001bde744e9f9sm63352plc.125.2023.08.17.11.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 11:09:15 -0700 (PDT) From: Tatsuyuki Ishi To: binutils@sourceware.org Cc: rui314@gmail.com, ruiu@bluewhale.systems, Tatsuyuki Ishi Subject: [PATCH 0/4] RISC-V: Implement TLS Descriptors. Date: Fri, 18 Aug 2023 03:08:33 +0900 Message-ID: <20230817180852.121628-2-ishitatsuyuki@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 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 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: This patchset implements TLS Descriptors (TLSDESC) for RISC-V targets, per the specification draft at [1]. This patchset is based on top of [2]. No regression in binutils and gcc tests for rv64gc, tested alongside the gcc and glibc implementation (will be posted shortly). This contribution is made on behalf of Blue Whale Systems, which has copyright assignment on file with the FSF. [1]: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/373 [2]: https://sourceware.org/pipermail/binutils/2023-August/129075.html Tatsuyuki Ishi (4): RISC-V: Add TLSDESC reloc definitions. RISC-V: Add assembly support for TLSDESC. RISC-V: Define and use GOT entry size constants for TLS. RISC-V: Initial ld.bfd support for TLSDESC. bfd/bfd-in2.h | 4 + bfd/elfnn-riscv.c | 105 ++++++++++++++++++--- bfd/elfxx-riscv.c | 75 ++++++++++++++- bfd/libbfd.h | 4 + bfd/reloc.c | 8 ++ gas/config/tc-riscv.c | 18 +++- include/elf/riscv.h | 5 + ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp | 2 + opcodes/riscv-opc.c | 1 + 9 files changed, 201 insertions(+), 21 deletions(-) -- 2.41.0