From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by sourceware.org (Postfix) with ESMTPS id 83FA83858D33 for ; Wed, 21 Feb 2024 07:04:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83FA83858D33 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 83FA83858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::2e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708499093; cv=none; b=Z/Ygy8uxnk5L76kt9x6O2vuHYmEDdlM68CJ96PRsEdS+JqKMPqmw6uL9W0tA7TQZy8NdcMxWj5tlO7bN1Q0AL0oPiDxKM32YybzrsuJwKe7eNO5bFIRqtIvBa6NMU2d6b5ePgz6e9j8+3JOO47VeJkOWxerb1gFYL0Q5Se7Ox7k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708499093; c=relaxed/simple; bh=zrSz1VTWEyG6WEq/wOCuW6aZ6l26hfzKwxhAQoHZM3s=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=EkTKIZnQIUmrvimB9UZtSuSc2EHHx0FPyAV3lEsqJXgLNNk8+SqgVNNh9U0aWOrOu6nHTknvNy3npQorCv2lhuW73fTHjd+Zlgqarvd1HunmHm5bs3Bb+M/+FK0OYltaZfVvtIuf7V9MxaJA7rgjl0SYgfAYbYhFMKhJD+X4VNU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-206689895bfso3958296fac.1 for ; Tue, 20 Feb 2024 23:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1708499091; x=1709103891; 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=tcBwMraeXU++UaWa3xjl/Rh1zGytTXqfl6pKnRrOPrs=; b=wsmNE5yBovfAteZYZg9pKVg2Vf8gokoOGxGsXfEjGeEzBjrexfBwiDAeUYmDkuy4HA Hh9k8rTa2RJVldiwjLgBYuUU9ig9+I2JXDsf19Tkf0nQQ/Gk3cCNxElXlFn1GkTNwyc4 XJiITI+ZRSrBfk3U6eQQnduyxnKq/xThCb303PonWhZqjJRE9hR+61F4Ak2HXTTsfc58 zhf319Cdz/bw7V8DiS6xrEb257aBdQeJj1On/jLbSZOidA7kJv9hcyEDHX++3gXWn9VH +06YnUi4w7bvUkPU6tWXRC7OWa1z1FGyXAcZbG2DFdOkkzVi/ZB1/sYxskpfUZh4gSPy xTlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708499091; x=1709103891; 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=tcBwMraeXU++UaWa3xjl/Rh1zGytTXqfl6pKnRrOPrs=; b=Ijl7oCfajvtvr+jTvbjFmmBDf3AJFrDrOliissFcvCwGn1hXRMxgphEQSLBVzDkZDS /ls+nRLqqQQb66Hjn58VNSI6fvsifgTacwoC9EdJmQqJM724qeITrX+3nUgoe0wmW3RR eSoms6VQL56DLbtTN8w3wSs8IIP7IsT5TauH98kWKXBLsJxIiKgackIpb7o7T8/UuzfI lLYk5X86fli7mdD52uFPkpOclz0EaiL1bXJAkJB6oTiIm+dV76lPXvmXT8oVyOD2E7jW iylaENbyIS5CohXkavgtnWTg/lvRmpe7Qc0y0cc4DadGsUg6iyPARKFShUFJKOB9U2Z9 M+ew== X-Gm-Message-State: AOJu0YxLdbjCIM1I7RxhQDH5RAenC0l1KzJWuvDqjstp9gqZGXO1hUkH BlDwpLqhnm8G9imSf4d6ozgk8RlQqZYxY7XcQsh5S00cZuIIpkm23hYc/2A1YV4Qj+tpzYOGr/b 7G1c9VyXLpRv/V1XsReJPcllse7ueSznoT5F64A== X-Google-Smtp-Source: AGHT+IFB7bW9Z73BABvaT6JlkTHzU84rQscGEvxQm9NfSkidIanYtnBUBoEHWfoQ5X+LnOpH8/tJgK2nX+U8kgv8APw= X-Received: by 2002:a05:6871:5827:b0:21e:4a2a:f060 with SMTP id oj39-20020a056871582700b0021e4a2af060mr16192853oac.13.1708499090921; Tue, 20 Feb 2024 23:04:50 -0800 (PST) MIME-Version: 1.0 References: <20240129131741.48824-1-nelson@rivosinc.com> In-Reply-To: From: Nelson Chu Date: Wed, 21 Feb 2024 15:04:40 +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 Content-Type: multipart/alternative; boundary="00000000000069f1930611def112" X-Spam-Status: No, score=-3.0 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: --00000000000069f1930611def112 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Committed :-) Nelson On Tue, Feb 20, 2024 at 8:19=E2=80=AFAM Nelson Chu wr= ote: > 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 = wrote: > >> 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 B9= D7 >> "And now for something completely different." >> > --00000000000069f1930611def112--