From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 9A7AD3858C30 for ; Tue, 30 Jan 2024 11:56:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9A7AD3858C30 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 9A7AD3858C30 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706615773; cv=none; b=eyCizlHmIdnSbW5GRceev9DJBHYqa3oWhwvXJbiL+MTBtn6UPH94UDD2Rwm4+jHDHpzRNbM08NxvMwvkcD3W/6UafNz1Q7JQGJ3IPZ2wTHRDgmLiUfMGkkYcZxT36/mPcGthgawPlbwTzMkzaZO9Eu0VbuL8O6/F7LoA/oWKyTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706615773; c=relaxed/simple; bh=Cy8+C1f/4ctieuBlnuYNLI//m/1zpZpQQUnISf2d6+M=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=CAUDpCd2JmUzkfogvWfQUZURBzuLgWnCDLZlrkb9sGA+tmbFGg7GefudqB4AmfsKoYJWjPjmYeimnfqMrOUgWgkKOpTqrBbG/N1zI6BadmlPGR8UEFuE3ZbRFyudVBeMbaWC15I1oKcW8Ym37BltsuUndHJUjDA9R7IEvL1dVkE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3bbbc6bcc78so3117907b6e.1 for ; Tue, 30 Jan 2024 03:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1706615770; x=1707220570; 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=1jQeMH2fdxLJ3NdOGyEOghadaWyRv5g/r6zvi8CpTPY=; b=AvN1CVW4uxnC8NpSmsTc6cGscTeGJZb3/IAwRsEnTOq1hP4IzcDCbMYB3sM8CxQXL0 qZYyk//H1kE2BJU/BM1g4OE+rFqGu4yUEfJ5UvTHyjZvnEQQEDNO34zqjdWEir23XqKD Pg5/iijXIzm55onKxoW1yUF6XNDOmLXdYSDfPeWW7xFQFDDJQcSJbJf9EXpfVr/c+pVd m8pv5FHFB9Wycw5f5vPJ9KNFRIDEh+aFHDKqhJv3LvRefinMSvuSdzjeCOHdRpXuTl3L Q6grdP5DKEO+lZnZ5NL5qSXV/xtSYejEj1QFTqVTpcEpIRRGFIAKUfG4Z53wpWHhobP0 kk/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706615770; x=1707220570; 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=1jQeMH2fdxLJ3NdOGyEOghadaWyRv5g/r6zvi8CpTPY=; b=AT1VZigxTVV/EEOX54sePhxheabDlNMRKvOrCIF5MA3k/EAw0CO5ri0oKjyxGdXQM+ Ia0qhqUadkYdNga9sArkRXvcvlcI1JKFH69nW9jnJ8vvsII15iADxGwQQX48UfIwF/le IbTZqC41Z/A9xjLZpPG/9okJema3ET+9W7mCbxm2etbQvwpOKQqbp2dJvgZkQIEEiXxG JDfT8et4NqHrsts+3ruJNcKkPii/Y2KTMCIxHaBnh95/O8Il6zTPr6ixfBVm0GMKdfxC PRJ5K9GSwEnazVYpzpJiXCrg6BDWiiFME8FK6a41P+d9xVfT+VkYmu3NNswyBrZ2LXZD g3RQ== X-Gm-Message-State: AOJu0YzZODxB4vYR4Rbb1JAPwThOXqeh9+F9PDp5pUbubyCCmGJmH39J vNPdYB3bhoaXk2iB4TwExuJ183mHToQRDQQO8KTdUCeG9rg5rrRAD5e9WArSHGQzsCW0as1crxK a6GUMles6b32kt5CAH11Dd9yM+At9s+vXIxYlCw== X-Google-Smtp-Source: AGHT+IE9mXRaUOalnIDm5P8bvDEb1OClIBkZfuvH0isbmIsnSBZichJgP/ZGmYgP57q6JIR0Ek0jvaw0a79bpe4LGjQ= X-Received: by 2002:a05:6870:c0cd:b0:204:a85:2580 with SMTP id e13-20020a056870c0cd00b002040a852580mr8102979oad.34.1706615769934; Tue, 30 Jan 2024 03:56:09 -0800 (PST) MIME-Version: 1.0 References: <20240129131741.48824-1-nelson@rivosinc.com> In-Reply-To: From: Nelson Chu Date: Tue, 30 Jan 2024 19:55:57 +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="000000000000bc410006102872b3" X-Spam-Status: No, score=-3.7 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: --000000000000bc410006102872b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 6:00=E2=80=AFPM Andreas Schwab wro= te: > 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. > > > > Passed the gcc/binutils regressions of riscv-gnu-toolchain. > > > > gas/ > > * config/tc-riscv.c (md_apply_fix): Raise fixP->fx_done for all > > branch and jump relocations when -mno-relax. > > Is this related to PR30591? > Yeah, it seems like the same stuff :) Thanks Nelson --000000000000bc410006102872b3--