Message ID | 20230831171345.49052-1-ishitatsuyuki@gmail.com |
---|---|
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 50B7D3857BB2 for <patchwork@sourceware.org>; Thu, 31 Aug 2023 17:14:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50B7D3857BB2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693502071; bh=0lorxFel+xYZ+zbbCQjRHYRxi9G4Lkx4+6SKW7TxKJY=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=hZ46eHXjH8Q/9SibkPesCq+1lASEkeDPjW6432xoQDLUIGmtCPiL56ZE4bZX3Zk53 vO1PW+ZaIU5/bWCa7U0lulLYyKUeCzfQKwWzYmiWGtQd2TMrwkcVTgJqmo3s0aH8JF U5KUvXbhp1g1XbDezh5rj2SffHUtTyO+hErJQiao= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 21F643858430 for <binutils@sourceware.org>; Thu, 31 Aug 2023 17:13:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21F643858430 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-26d144db2b4so152320a91.1 for <binutils@sourceware.org>; Thu, 31 Aug 2023 10:13:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693502029; x=1694106829; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0lorxFel+xYZ+zbbCQjRHYRxi9G4Lkx4+6SKW7TxKJY=; b=XKemtcZkucFTqOpZV2XL2xGv6DlkaLCT/ix9NQDddUR7pAxbeYuyYE1CQ8JDK4auBu PDB7CemoUsP12W5me3DbtoPp0HhoiNHX8wcJLslXOZyX0UK+n1xORGTniOKE8UTUajFU p2nzKzSoK+T5YAtLsogiW+D8fEinr4TExrJJIQcvM2EfNETtPY4Z3EgUXSjZwPd8kFeV y9ZH1iJNpBU2nyM2qsfspOtQIWznJCcqqBV3oaDqYSixIOOc7fxC2t7b+0xvVFAaJIrH TzCTsNtUqe646C37ABEHWNQp2D+M71Zgjs5E3lQPtMTy10SAb94lguo0skscwjFj01Pl BorA== X-Gm-Message-State: AOJu0Yy6x3IJGBRM133KzwbpYB+KOBH0gBhJWWw8jMyK682q8fiZhT6M BqpS6yfggdCTP5elcr1U6bGMODqJkc4V8A+C X-Google-Smtp-Source: AGHT+IEZjCcT/XBEBch4XsYLHBpKS/4hCcpk1wRrYF8eghM0G/l3+/3GoVXptS2WMwnP0/dA/pEhHw== X-Received: by 2002:a17:90a:142:b0:263:730b:f568 with SMTP id z2-20020a17090a014200b00263730bf568mr5390721pje.3.1693502029565; Thu, 31 Aug 2023 10:13:49 -0700 (PDT) Received: from localhost (zz20184013906F627101.userreverse.dion.ne.jp. [111.98.113.1]) by smtp.gmail.com with ESMTPSA id gv9-20020a17090b11c900b0026f39c90111sm1586586pjb.20.2023.08.31.10.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 10:13:48 -0700 (PDT) To: binutils@sourceware.org Subject: [PATCH v2 0/5] RISC-V: Implement TLS Descriptors. Date: Fri, 1 Sep 2023 02:13:30 +0900 Message-ID: <20230831171345.49052-1-ishitatsuyuki@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230817180852.121628-2-ishitatsuyuki@gmail.com> References: <20230817180852.121628-2-ishitatsuyuki@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tatsuyuki Ishi via Binutils <binutils@sourceware.org> Reply-To: Tatsuyuki Ishi <ishitatsuyuki@gmail.com> Cc: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>, rui314@gmail.com, ruiu@bluewhale.systems Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org Sender: "Binutils" <binutils-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
RISC-V: Implement TLS Descriptors.
|
|
Message
Tatsuyuki Ishi
Aug. 31, 2023, 5:13 p.m. UTC
This patchset implements TLS Descriptors (TLSDESC) for RISC-V targets, per the specification draft at [1]. No regression (& passing new tests) in binutils, tested for rv64gc. 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 v2: Add changelogs and tests. Minor fixes described in patch messages. Tatsuyuki Ishi (5): RISC-V: Fix local GOT and reloc size calculation for TLS. 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 | 124 ++++++++++++++++++--- bfd/elfxx-riscv.c | 75 ++++++++++++- bfd/libbfd.h | 4 + bfd/reloc.c | 8 ++ gas/config/tc-riscv.c | 18 ++- gas/testsuite/gas/riscv/tlsdesc.d | 22 ++++ gas/testsuite/gas/riscv/tlsdesc.s | 24 ++++ include/elf/riscv.h | 5 + ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp | 8 ++ ld/testsuite/ld-riscv-elf/tls.d | 17 +++ ld/testsuite/ld-riscv-elf/tls.s | 42 +++++++ ld/testsuite/ld-riscv-elf/tlsbin.d | 12 ++ ld/testsuite/ld-riscv-elf/tlslib.s | 6 + opcodes/riscv-opc.c | 1 + 15 files changed, 347 insertions(+), 23 deletions(-) create mode 100644 gas/testsuite/gas/riscv/tlsdesc.d create mode 100644 gas/testsuite/gas/riscv/tlsdesc.s create mode 100644 ld/testsuite/ld-riscv-elf/tls.d create mode 100644 ld/testsuite/ld-riscv-elf/tls.s create mode 100644 ld/testsuite/ld-riscv-elf/tlsbin.d create mode 100644 ld/testsuite/ld-riscv-elf/tlslib.s