From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by sourceware.org (Postfix) with ESMTPS id 32BDC3858D28 for ; Tue, 20 Feb 2024 00:19:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 32BDC3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 32BDC3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::232 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708388378; cv=none; b=rElQ/7ZamQsuFnKY49TSDHpYXDdbVE0cOJoaCYQWw9LyELEPl2wuIAJWx5AWEzRPrQB+6dpjxWPFMj2gGWqxHxlF36KbV37mP8wLhx7V7TJvUEKEZoXo7NFnnb/IR2/9car23gxmhQ8MsVdbhL81wKUWTJRtTxDFwe9fFNMJzHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708388378; c=relaxed/simple; bh=pmfYxiYjidWKL/izXQ+OwkO9o9PfP59d1ddNsdTjkyc=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=IGDq/truuGvz9CkpzgbEaloZfolNZHzQyiWHINxwIyG0OpEWFabc78e8jiubiCf0uLIMLB3CqQwuYkr9aprwIBsW4R+JFZO6SD14i99DtERzPk5G3IswclQTrJasZ+3j0YZGl88uBsB4V1KREhtBMFkyL4OVsxM2OA8p1CwKslY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3bbbc6b4ed1so3729024b6e.2 for ; Mon, 19 Feb 2024 16:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1708388368; x=1708993168; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ymSuYo6pdmtpxL1KUIVtX/miwDhHfClBTE7IjRaXs98=; b=N5QCvxb3x0GijFnI7DOKCqW4j7wIXfTph2WKM2ZFoj9+51Zkz8AEE7vie+lzL4aXC+ UC1R8xDE6pAMlLaN8eZWufeRysk6nqzaAA4ahVgMutkVuDAr/SjcOkPQvCBtwRIj+DmI xM4Codoa4sJCXcdKL1VHcsUnpikKEBu1+l90vCpOiYiq7THQIbMlRyJT9lYmo2dYseiN vNvREzTGsgKJX3Gmt5LliDSLhMbDYfOLyTpMKxf1Nvw8ZvyZOq/XYk7nyO8r2QK4BrSy HQC0gj0jepUsxgVq5qnScx/t5L5e+g/5tITNksz5I42wpQTTtGcxbh8wzDgZHBLzsTF8 3Ikw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708388368; x=1708993168; h=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=ymSuYo6pdmtpxL1KUIVtX/miwDhHfClBTE7IjRaXs98=; b=L9hZR3xy9OozRpzkbtmKfKy2vvCuu+KSaMX3l7yyKmPhcdd6hlE1E+amKG1IWD4n8W 9hDMN2PxwAbOnm8LliXuLhGJRWCOJWjfwGeWDf6yA4uh7AeIdyPxgVFIY1svboGJi1L2 KSBVZ+tZkDX7wOTyPOdMtuggNO6CAxwEOzY9oROjWy7zH8I3t35/Z3x5aFojN+ScVUrj qY7Iy+OERqobGYEm2TzPILsig3tJEbSGvDrHyH8oQUiYWtsOEJT62ZslcyRTbncO+2km +KaEK9XwDixoIb7uZmZ8tXjYsQ7VwQ1UYq+ZL+rSMm60obxk67+0V4zBnRuUsxpnLd30 INpA== X-Gm-Message-State: AOJu0Yw1c7a2JZExWES6agZDh3iBf7oV0mToSkfVwh0M6d2gtZ84lLb/ ZnfRKeHeps5XvNA4cD3xqsa0syBYjYwURJKjEtdC+v7ppbvwQKcFCLF/RvELUYPNJfxBpYmc30D HVlNN2V+EJfu/3eJcpAFER+GG9W0ZajY9asCOww== X-Google-Smtp-Source: AGHT+IEKmQP/UYMzCL1XIhmKsWsx6S4K3WipF/MPii+YHr0BYKbBtBzbqPTi+PygzSalE/7ns05wxPDtYXsSt060K4Y= X-Received: by 2002:a05:6871:3a20:b0:21e:9268:864d with SMTP id pu32-20020a0568713a2000b0021e9268864dmr8398136oac.59.1708388368574; Mon, 19 Feb 2024 16:19:28 -0800 (PST) MIME-Version: 1.0 References: <20240129131741.48824-1-nelson@rivosinc.com> In-Reply-To: From: Nelson Chu Date: Tue, 20 Feb 2024 08:19:17 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Don't generate branch/jump relocation if symbol is local when no-relax. To: Andreas Schwab Cc: binutils@sourceware.org, kito.cheng@sifive.com, jim.wilson.gcc@gmail.com, palmer@rivosinc.com, andrew@sifive.com, nelson.rivosinc.com@nelsondembp.localdomain Content-Type: multipart/alternative; boundary="000000000000d8fed20611c52933" X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,HTML_MESSAGE,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: --000000000000d8fed20611c52933 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the information! I will commit it before this week ;) Thanks Nelson On Mon, Feb 19, 2024 at 10:35=E2=80=AFPM Andreas Schwab wr= ote: > On Jan 29 2024, Nelson Chu wrote: > > > Refer to commit, dff565fcca8137954d6ad571ef39f6aec5c0429c. > Theoretically, > > assembler don't need to generate the pc-relative relocation and the > refered > > local .L symbol when relaxation is disabled. The above commit improved > the > > pcrel_hi/pcrel_lo relocations, and this commit improves branch and jump > > relocations. > > This reduces the number of relocations for .text in the amdgpu kernel > module from 217597 to 101552. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." > --000000000000d8fed20611c52933--