From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by sourceware.org (Postfix) with ESMTPS id 213A2385B834 for ; Tue, 24 Mar 2020 14:25:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 213A2385B834 Received: by mail-wr1-x443.google.com with SMTP id a25so21726115wrd.0 for ; Tue, 24 Mar 2020 07:25:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E0MrlibLIWNCHefRJBxM0+9c868qI9xer+hdPzn/854=; b=cwcN5mCn8xZ0c5Ruey99B94/Tcbgbp8ANQd1IwT9H7rV3mgWnnjiy8tMrGApw+MOzz P2+rmhR5803R7QOhG/3yk9bBSTIVrA9Zd9pv1JbnKA/giMtBIeGQ3Or5HpE+USr0Z/ad eIalcw+R5F7WHv7ESOTJx80QOPPmefmjI/n9HxppbOgJXHH0+doFT4DNS6WVGRozgOwS 72MJ6nvwlT/yGNlj09bUT2+h8WRgArimiUgunbbwWaqIG6jqUJHUvKsJMgvlkEXLQ2/t ysLkbkEmqD9zBrbhd8+HW+YxILKMbHdoRHCOw5gc9njAlj5Ks85IlYKvAFVQ5JRnkstD cZjw== X-Gm-Message-State: ANhLgQ0ZHZHtMkbHkyQ6+EkcGvQ40FRKZ6x8oCIbJU87/MZ+Va3gsEcm rM1Px0+P/sguCngRyBpPO3nCL/Um X-Google-Smtp-Source: ADFU+vtbi8MTLI2PiGycjQa5/UA4UcYp6QTU/OtP0y7FfvosAb8p1c1tDFBcqXXaOry9ACGGQqQUsw== X-Received: by 2002:adf:8b5c:: with SMTP id v28mr34864990wra.98.1585059936952; Tue, 24 Mar 2020 07:25:36 -0700 (PDT) Received: from atlantis.home ([2a03:1b20:3:f011::6d]) by smtp.gmail.com with ESMTPSA id l17sm22717626wrm.57.2020.03.24.07.25.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2020 07:25:36 -0700 (PDT) From: Shahab Vahedi To: binutils@sourceware.org Cc: Shahab Vahedi , Claudiu Zissulescu , Francois Bedard Subject: [PATCH] arc: Use correct string when printing bfd DEBUG data Date: Tue, 24 Mar 2020 15:25:24 +0100 Message-Id: <20200324142524.11083-1-shahab.vahedi@gmail.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-26.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Tue, 24 Mar 2020 14:25:39 -0000 From: Shahab Vahedi PRINT_DEBUG_RELOC_INFO_BEFORE() macro prints bunch of parameters for debugging purposes. Due to a seemingly copy/paste mistake, the "input_section->vma" is printed under the field name "symbol_section->vma". This commit fixes that. This fix is a courtesy of xiangzhai. bfd/ChangeLog 2020-03-24 Shahab Vahedi * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the correct field name in the output string. --- bfd/ChangeLog | 5 +++++ bfd/elf32-arc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d9e1139eb1a..8e841b42745 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-03-24 Shahab Vahedi + + * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the + correct field name in the output string. + 2020-03-24 Nick Clifton PR 25681 diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 5179fc370c4..df6e3c4e193 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1255,11 +1255,11 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data, else \ ARC_DEBUG ("symbol_section->vma = NULL\n"); \ if (input_section->output_section != NULL) \ - ARC_DEBUG ("symbol_section->vma = %#lx\n", \ + ARC_DEBUG ("input_section->vma = %#lx\n", \ input_section->output_section->vma \ + input_section->output_offset); \ else \ - ARC_DEBUG ("symbol_section->vma = NULL\n"); \ + ARC_DEBUG ("input_section->vma = NULL\n"); \ ARC_DEBUG ("PCL = %#lx\n", P); \ ARC_DEBUG ("P = %#lx\n", P); \ ARC_DEBUG ("G = %#lx\n", G); \ -- 2.26.0