Message ID | 20231007071110.401935-1-neal.frager@amd.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp787151vqo; Sat, 7 Oct 2023 00:11:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeSVJbwwU4o6eKvXs0mCTab8AQISfRzdmeSyll9l1m1OuKcx5QuRDgz1v+hXcKK9m1Yj8y X-Received: by 2002:aa7:d40e:0:b0:523:b133:5c7e with SMTP id z14-20020aa7d40e000000b00523b1335c7emr9683813edq.1.1696662687004; Sat, 07 Oct 2023 00:11:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696662686; cv=pass; d=google.com; s=arc-20160816; b=eDAeVmtdUAufio0u31QSNXrpCzToTuhQgecndpTGPBWBMbFK3+YgTmfI9GwlhnjPqd 7T5npIXIIoJErZn+DJtR9WlNZr9tMwyr2az9mKwEdokqkCpH8MImfMDO1fOdIOL0Ykq2 gXW4YQU58oL5gOixMyyPhlcr4oTidspFxXNRcn1pz07sYcJSKEoFiJ1JCUQXP15k2WLt cVy9NM51bQqNb8KwjDeDOtldYa1mWYgmbn6D8fDi9ABQA//A3McBRr4yXyCcObXPYgzn CCOIjQbQORndxF9W7PGHO1mE6L2BnY3JYWmN8CSuJXCfoYew9B6sf0A6bUTK61gZEYZp iqWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=ZHhqsai+ms2M9CxmksaI2UrG+jBjEMjCTgQzuZdD7to=; fh=mPt61J/dH2euy5rZYMDoGoql8Zps3TNSfmz50J3IrRY=; b=btbDltn5p+oM+oCV8ZIA+kQtcSd+An+HmmcUg8UjRlUkXRBj0CGlRmBhhZBotDQXAb 0ZjRVVq/AXYQLFZGD6EdxcCh0/KUCYHszM7eNc+dBmic5L1zxwENkHMuReWhyKMVNojH Wepkh18tUGt+75wvSSaRIPpMHd/SGDfBJUxR1E3wVde3UIUMUzcukaoZvLLRIqFDtbzI D2vR5jyYXrXGxBUKjWJd0tq6WXzGxOs5K1gywbpb07C0rO3CCrDcODjLOpK9DW/nTP54 iMfXLFij9mqJuSQkHdxN9xhmhd/NzgMsBUDiGq0dlpo0gYdqB2c2YDclM4zQTowMObD3 5C8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Y8lT20lq; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id t2-20020a05640203c200b005313a574234si2378072edw.473.2023.10.07.00.11.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:11:26 -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=@amd.com header.s=selector1 header.b=Y8lT20lq; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF95F3857C40 for <ouuuleilei@gmail.com>; Sat, 7 Oct 2023 07:11:24 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2048.outbound.protection.outlook.com [40.107.220.48]) by sourceware.org (Postfix) with ESMTPS id AC1BA3858426 for <binutils@sourceware.org>; Sat, 7 Oct 2023 07:11:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC1BA3858426 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IeXl73ooPoeCOQAP+YSjWFWZudHbCXddCbLmUmhSHSmEZrXHs+VFuG3oGFV719TYl9HNMuaWJpXCh131vdIVWmNBfXB5J2s8Ep8JhaP6Sljwgpu0zBWk3REw7kPuIFyluJO27SYTTXJMOzxQrPhzoehXne9aSfXjWzq4+jXqjf/8OisfLY7JGz0a3y5DK7SlFZGnmyc+5k+qaLhAZUYXM0LF6KPc6FJ1UDensMhGmXV1qqmmI+KOWCwh8yauejjgVp0fRe1JSi5ph1u1PlerMK4BlwPczOSjEmSiXWGA/9Zf/hE7lr9uKFrBaMa8bAkwnpiEWOhisfzfs48OI6tamw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZHhqsai+ms2M9CxmksaI2UrG+jBjEMjCTgQzuZdD7to=; b=JKdXbesFyUU8b77TRBgx7dj70LhCHb5KdSz3y/7N3mnP6fDMG828MgiZP4xgqBedRBi/TB2SFdwhA6ovHT90uZ3OYowMNwoiv+q4qqfeOYDMFhbVJeG8G1rfUVrAsaPhkF25H9jv9wZ/hPmJhZhz7Np1sSXB0SUnYdAujZpZTXZQIbfPDyUGwWRLhP7LqyWQXehKNXXZzbogVdUn+ZcfKXWuIO3A/XZkVw0aBJouAiMEXV8CSg1UJFo/GpB9aT+TIP2IfonRilN/+cy8eFkuLM7gxcr/V9ZTbslf5rdi3HGtlMUC4fbB3kTqlo6U3ItyyhciVqW6trZzGcoHaTxvUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZHhqsai+ms2M9CxmksaI2UrG+jBjEMjCTgQzuZdD7to=; b=Y8lT20lqsYddUL+EdWajMHQ+YuTFah2QHh9UWU41x3S5fUtOYl8GvdgWSxoZYAsn5/6LKBightAXA7+TTcMQEH8e8iGTcXmsp1Mzh79AAoS7Ils6Z+diR7K0R1Hv5qS4DfwrUU02DwdUz99U2YHlVfy2xSfEvtb2/3uLeLsmzdg= Received: from MW4PR04CA0369.namprd04.prod.outlook.com (2603:10b6:303:81::14) by MW4PR12MB7015.namprd12.prod.outlook.com (2603:10b6:303:218::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Sat, 7 Oct 2023 07:11:15 +0000 Received: from CO1PEPF000042A9.namprd03.prod.outlook.com (2603:10b6:303:81:cafe::fc) by MW4PR04CA0369.outlook.office365.com (2603:10b6:303:81::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.33 via Frontend Transport; Sat, 7 Oct 2023 07:11:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1PEPF000042A9.mail.protection.outlook.com (10.167.243.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.17 via Frontend Transport; Sat, 7 Oct 2023 07:11:15 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 7 Oct 2023 02:11:14 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 7 Oct 2023 00:11:14 -0700 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Sat, 7 Oct 2023 02:11:13 -0500 From: Neal Frager <neal.frager@amd.com> To: <binutils@sourceware.org> CC: <ibai.erkiaga-elorza@amd.com>, <nagaraju.mekala@amd.com>, <mark.hatle@amd.com>, <sadanand.mutyala@amd.com>, <appa.rao.nali@amd.com>, <vidhumouli.hunsigida@amd.com>, <luca.ceresoli@bootlin.com>, <nickc@redhat.com>, Neal Frager <neal.frager@amd.com> Subject: [PATCH v1 1/1] bfd: microblaze: Fix automated build errors Date: Sat, 7 Oct 2023 08:11:10 +0100 Message-ID: <20231007071110.401935-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000042A9:EE_|MW4PR12MB7015:EE_ X-MS-Office365-Filtering-Correlation-Id: c93c28f6-38d1-42fa-abae-08dbc7049879 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oZ3xPTPbxNLN/3D5xbColpIaBe2389/Q+uLHQpc+z1ycaxRzEG+XuUsJPAtPcuTCwpURDaAGEePSQZ50lD37hC8Lm5gcuSHX1DhGG8QNR3erLPwuS/DS+HntJVcY/KtFPWxepGKL6RP+6zM6itoDwIZc1yMR/xvlDlosqZkflZNT+3H0ZS56/n97zDzoxdg9dtxXfUKKUhjxzBbGalTHDsR+gieobMLIyfN62TuC+Q7rwi4z76BIrAsFnUkTcvM9OWzUz48U6KylPPtLSM9te3YS5hnWuc5fFmx+j95jFmZ/T4EsSrd+fzABHbStyoLgvazQ3W8stGmHpgc/iumgrQMUKVINNU6xOTTZuN48fM2ZqhRzx60VIXtM+ffVqS3WFZ/MyQ6j9C+UU/9EoihT0DBlWPorPsWOqDo2Z//GVRVclRcEIDAl43vk6DTXnGkXsf9cIhB+6sBvwkHfXtKG29mG4gzRi+MzFrP2BoFHXKeRQGnLCZ3fZ4RmzRrRzQ0LRvcgeQDwe/am6LrpgBg2Q3y2GPoi+uyqSavyN9dPOpZH9ovd1BnloCcr+OA3sP7F7jfQ19b4CPZ/hTyGwcQ2IiKBfFA0pm+cckDvukjza4D+st+/DbDDk9gjuWEimm4t6Gf3Pz+YicL47yoC+Hm7KRX3EafM73nHHPSsWk4xpZ1oFqk/E1TSRy3aGPmYZmBqTgAf/9yFpORiyFBWayDHcFDNcLNmTjtpwxDLiD8t6YIPlL8ZHUxIIxRuopVxLMaE X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(346002)(396003)(136003)(39860400002)(376002)(230922051799003)(82310400011)(186009)(1800799009)(64100799003)(451199024)(46966006)(36840700001)(40470700004)(966005)(478600001)(26005)(8676002)(1076003)(426003)(336012)(316002)(2906002)(8936002)(41300700001)(83380400001)(70206006)(70586007)(5660300002)(6916009)(54906003)(44832011)(4326008)(36756003)(36860700001)(47076005)(82740400003)(86362001)(356005)(81166007)(2616005)(40480700001)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2023 07:11:15.3558 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c93c28f6-38d1-42fa-abae-08dbc7049879 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000042A9.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7015 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP 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.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779079773449274255 X-GMAIL-MSGID: 1779079773449274255 |
Series |
[v1,1/1] bfd: microblaze: Fix automated build errors
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | warning | Git am fail log |
Commit Message
Frager, Neal
Oct. 7, 2023, 7:11 a.m. UTC
This patch fixes the following automated build errors:
https://builder.sourceware.org/buildbot/#/builders/80/builds/2101/steps/4/logs/stdio
https://builder.sourceware.org/buildbot/#/builders/72/builds/3405/steps/4/logs/stdio
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
bfd/elf32-microblaze.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 10/7/23 00:11, Neal Frager wrote: > This patch fixes the following automated build errors: > https://builder.sourceware.org/buildbot/#/builders/80/builds/2101/steps/4/logs/stdio > https://builder.sourceware.org/buildbot/#/builders/72/builds/3405/steps/4/logs/stdio > > Signed-off-by: Neal Frager <neal.frager@amd.com> > --- > bfd/elf32-microblaze.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c > index a8ced43c08a..96bb63fbd2e 100644 > --- a/bfd/elf32-microblaze.c > +++ b/bfd/elf32-microblaze.c > @@ -1986,7 +1986,7 @@ microblaze_elf_relax_section (bfd *abfd, > /* Validate the in-band val. */ > val = bfd_get_32 (abfd, contents + irel->r_offset); > if (val != irel->r_addend && ELF32_R_TYPE (irel->r_info) == R_MICROBLAZE_32_NONE) { > - fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend); > + fprintf(stderr, "%d: CORRUPT relax reloc %x %x\n", __LINE__, val, irel->r_addend); The type of irel->r_addend is "bfd_vma". "bfd_vma" can be "unsigned long" or "unsigned int". Perhaps the correct fix is: fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, (unsigned long) irel->r_addend); or fprintf(stderr, "%d: CORRUPT relax reloc %x %llx\n", __LINE__, val, (unsigned long long) irel->r_addend);
Hi Vladimir, > This patch fixes the following automated build errors: > https://builder.sourceware.org/buildbot/#/builders/80/builds/2101/step > s/4/logs/stdio > https://builder.sourceware.org/buildbot/#/builders/72/builds/3405/step > s/4/logs/stdio > > Signed-off-by: Neal Frager <neal.frager@amd.com> > --- > bfd/elf32-microblaze.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c index > a8ced43c08a..96bb63fbd2e 100644 > --- a/bfd/elf32-microblaze.c > +++ b/bfd/elf32-microblaze.c > @@ -1986,7 +1986,7 @@ microblaze_elf_relax_section (bfd *abfd, > /* Validate the in-band val. */ > val = bfd_get_32 (abfd, contents + irel->r_offset); > if (val != irel->r_addend && ELF32_R_TYPE (irel->r_info) == R_MICROBLAZE_32_NONE) { > - fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend); > + fprintf(stderr, "%d: CORRUPT relax reloc %x %x\n", __LINE__, > +val, irel->r_addend); > The type of irel->r_addend is "bfd_vma". > "bfd_vma" can be "unsigned long" or "unsigned int". > Perhaps the correct fix is: > fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, (unsigned long) irel->r_addend); or > fprintf(stderr, "%d: CORRUPT relax reloc %x %llx\n", __LINE__, val, (unsigned long long) irel->r_addend); Thank you for your input. I will implement your solution in v3 of the patch. Just to be sure, both lines should be cast set to (unsigned long), correct? The "(unsigned long long)" that you used on the second fprintf statement was just a typo? Thank you for your help. Best regards, Neal Frager AMD
Hi Neal, On 10/8/23 23:13, Frager, Neal wrote: > Hi Vladimir, > >> This patch fixes the following automated build errors: >> https://builder.sourceware.org/buildbot/#/builders/80/builds/2101/step >> s/4/logs/stdio >> https://builder.sourceware.org/buildbot/#/builders/72/builds/3405/step >> s/4/logs/stdio >> >> Signed-off-by: Neal Frager <neal.frager@amd.com> >> --- >> bfd/elf32-microblaze.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c index >> a8ced43c08a..96bb63fbd2e 100644 >> --- a/bfd/elf32-microblaze.c >> +++ b/bfd/elf32-microblaze.c >> @@ -1986,7 +1986,7 @@ microblaze_elf_relax_section (bfd *abfd, >> /* Validate the in-band val. */ >> val = bfd_get_32 (abfd, contents + irel->r_offset); >> if (val != irel->r_addend && ELF32_R_TYPE (irel->r_info) == R_MICROBLAZE_32_NONE) { >> - fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend); >> + fprintf(stderr, "%d: CORRUPT relax reloc %x %x\n", __LINE__, >> +val, irel->r_addend); >> The type of irel->r_addend is "bfd_vma". >> "bfd_vma" can be "unsigned long" or "unsigned int". >> Perhaps the correct fix is: >> fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, (unsigned long) irel->r_addend); or >> fprintf(stderr, "%d: CORRUPT relax reloc %x %llx\n", __LINE__, val, (unsigned long long) irel->r_addend); > Thank you for your input. I will implement your solution in v3 of the patch. > > Just to be sure, both lines should be cast set to (unsigned long), correct? The "(unsigned long long)" that you used on the second fprintf statement was just a typo? The "bfd_vma" type is defined outside elf32-microblaze.c You don't know who determines this. It can be "unsigned long long" and irel->r_addendIn can be very large. In this case, we need to use the format "%llx" and convert the argument to the required format ((unsigned long long) for %llx).. -Vladimir > > Thank you for your help. > > Best regards, > Neal Frager > AMD
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c index a8ced43c08a..96bb63fbd2e 100644 --- a/bfd/elf32-microblaze.c +++ b/bfd/elf32-microblaze.c @@ -1986,7 +1986,7 @@ microblaze_elf_relax_section (bfd *abfd, /* Validate the in-band val. */ val = bfd_get_32 (abfd, contents + irel->r_offset); if (val != irel->r_addend && ELF32_R_TYPE (irel->r_info) == R_MICROBLAZE_32_NONE) { - fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend); + fprintf(stderr, "%d: CORRUPT relax reloc %x %x\n", __LINE__, val, irel->r_addend); } irel->r_addend -= (efix - sfix); /* Should use HOWTO. */ @@ -2071,7 +2071,7 @@ microblaze_elf_relax_section (bfd *abfd, val = bfd_get_32 (abfd, ocontents + irelscan->r_offset); if (val != irelscan->r_addend) { - fprintf(stderr, "%d: CORRUPT relax reloc! %x %lx\n", __LINE__, val, irelscan->r_addend); + fprintf(stderr, "%d: CORRUPT relax reloc! %x %x\n", __LINE__, val, irelscan->r_addend); } irelscan->r_addend -= calc_fixup (irelscan->r_addend, 0, sec);