From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 626BE3858D1E for ; Fri, 28 Jul 2023 03:37:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 626BE3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 0C5FF300089; Fri, 28 Jul 2023 03:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1690515463; bh=ZDpwoc18AMx7el6/0rJmT6l6/jJ2G1tlZRh+pWQtATo=; h=From:To:Cc:Subject:Date:Message-ID:Mime-Version: Content-Transfer-Encoding; b=ap1jShxJFuKXEmj/bOHkPhY51TtMYr08g2BLCUMzl7W7ENFbHvLkleTspGDPQ6QDe 2lqXBfSsn9z3+abqOwgVmuwB5z8W8hhjYrHf67ibXfNPAZ9DCexWLJKiBPtkqDGHCd q+7IuxUI584mr1YYZ2i/e4U50ifaESyAaT1RkxL4= From: Tsukasa OI To: Cc: Tsukasa OI , binutils@sourceware.org Subject: [COMMITTED] Fix typo in riscv-dis.c comment Date: Fri, 28 Jul 2023 03:37:34 +0000 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,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: From: Tsukasa OI Don't go "past" the start of the section. --- opcodes/riscv-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index 2826248f8afa..138eed8d31f3 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -939,7 +939,7 @@ riscv_search_mapping_symbol (bfd_vma memaddr, } /* We can not find the suitable mapping symbol above. Therefore, we - look forwards and try to find it again, but don't go pass the start + look forwards and try to find it again, but don't go past the start of the section. Otherwise a data section without mapping symbols can pick up a text mapping symbol of a preceeding section. */ if (!found) base-commit: f921e120da78adc973610df81f01ea37b369e13f -- 2.41.0