From patchwork Fri Jul 28 03:37:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 127297 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp168915vqg; Thu, 27 Jul 2023 20:37:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVjuyyuwG2zYXLlJfyiPKfHTOodDrlE8DipTJJlOfRfH1QcQun3LpSZWaqzuzxNTaYUHbZ X-Received: by 2002:a17:907:b1b:b0:975:63f4:4b with SMTP id h27-20020a1709070b1b00b0097563f4004bmr1261041ejl.36.1690515475980; Thu, 27 Jul 2023 20:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690515475; cv=none; d=google.com; s=arc-20160816; b=rsm+a7b2eIxm+azJgPx1ezAn05j4rwjpNjlN86uI9sR/4aGpTaFOXsQsFp575sFkEc scITthNpZe94Ea2KtTgJM5Hl8hkyV8fgqOl/kDYMNGNzcW4DYCt+Mxm5FZ2EsLFEUM2J AzztbWdFdz1OxT+KVxwbHgZAvHqjefmkK3WlnO+apv9qsXPJHuGx3xO0ErfKcTWE7+Mo zZVRN0/rvlHVgqwXtfXRPAhVP7l99ncrrqrVjUrP6r63ACeQ3f9wxdIMPoPJjP2oYDVk yunV+uLL2Q0ZbQw56qQDTR3KDX+M5AmVUbZeuSi8ei7Xbr6/qwrbh3kB5ilBDxPvOObr syEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=ZDpwoc18AMx7el6/0rJmT6l6/jJ2G1tlZRh+pWQtATo=; fh=GA8tbOloV3Y8ZkMcUW8M3fr0Y7/v5KMkpQ4HWdRgYRs=; b=P9sS+rJ7EZ1Gzcwfqm0Byqwk2FC5hhtmxzISZPc6LO7rJhTRU5OOpPsQLN438FFKLX 6i+pjoStxqiIEdpdX3pCCVib14xJZ/QPclmzUh8OaevLR5Nxnz2yO/1EVULy55kYzdlc awi6Yewj+YwcrGdfbL0xp4/Rbv+SUuLfZzjU1kgQBWYkvYO0YNgXpIZLIkdddGGVAl19 RbFHhtx/x6hF681Ed6ku3A6ote4Dik+NI1YpMTYsS74c2Y507oVU4uUO05FE6NrrU/fc VDbxafEzoSDpD892RANHjrCJz2liv/jugsUnThBIKPVAKh478kf7Ka0S4De8Hd/9vCnd q7eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="xV/6FFk9"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b1-20020aa7cd01000000b0051e29447e4fsi1880498edw.548.2023.07.27.20.37.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 20:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="xV/6FFk9"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2CEE385701B for ; Fri, 28 Jul 2023 03:37:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2CEE385701B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690515474; bh=ZDpwoc18AMx7el6/0rJmT6l6/jJ2G1tlZRh+pWQtATo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=xV/6FFk9CnrSGLQZIA+QRDAulDC7lI1sgf5pyMhJfY8w9T3CedI8YvyTBJCaumWlm 9RTC82vM52RurOU2ic8829gHlS/fdhHqQRZ9pLiIUugtBSpwDHujoipHiPCypKt8Pa YNtyQfPJUJOpMeeln1m5s8cprzqCFQ0oNZ7p3j+o= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org 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 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) 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 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tsukasa OI via Binutils From: Tsukasa OI Reply-To: Tsukasa OI Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772633955727499341 X-GMAIL-MSGID: 1772633955727499341 From: Tsukasa OI Don't go "past" the start of the section. --- opcodes/riscv-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: f921e120da78adc973610df81f01ea37b369e13f 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)