From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id ABA553858C2F for ; Thu, 21 Jul 2022 04:13:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ABA553858C2F Received: by mail-pf1-x42c.google.com with SMTP id e16so631083pfm.11 for ; Wed, 20 Jul 2022 21:13:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding; bh=FjixmP7L8EJmHF8urAEiWecapVhyqzFDtDnUQESsjgU=; b=mCNMEvKg/zwUbrQ7T+OxeLs/+qTOzbDN48qCojNYLq3vXDuk5wp3mkSF3d1CIM0xSf rwFQ9KsaGA3Mnqqbb7sOQW2BYprSh9c76paJVZrY0CbrC6dK55xvNksgvsedLnGp7/Xd dkbBaCuGZe24xghrhtqOwPxlUPlLpQSn8ZDabNBHyplDrUWlP5+R9+k1JZvslKdKqCha A+x2zEBmxlYMBokvl9pQNXML8zcU6ngayYaZSrK5mSOiE6TZgSRWvlhn6mTzNSk0kI3f 8gAMk3yiwtycR0sG82Bos108m2dsAY1Jh0pbQY/Qi1RRp5IA1ulKWii6OLl1Xhrnb9ZM Qu2g== X-Gm-Message-State: AJIora89gAMMi1IlMxd6bk2YtpJCvXELfD79sqdMvx/IDwXWmbT4uSE5 zRH2JWwvsFab8ODqYqTlUHl5TwlQ15U= X-Google-Smtp-Source: AGRyM1sDXOgphk7JdIjnNwQdaQH2LIXOg5nfAa/5Rp0I7YE8qm9fgms/7kY3I6iGUQ1sbDxy7RhE+Q== X-Received: by 2002:a63:2ac2:0:b0:419:8145:639b with SMTP id q185-20020a632ac2000000b004198145639bmr36361761pgq.42.1658376784368; Wed, 20 Jul 2022 21:13:04 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:8510:31b:4e97:43af]) by smtp.gmail.com with ESMTPSA id b19-20020a62a113000000b0052ba88f2de0sm461032pff.131.2022.07.20.21.13.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 21:13:03 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 9A42A1140BC9; Thu, 21 Jul 2022 13:43:01 +0930 (ACST) Date: Thu, 21 Jul 2022 13:43:01 +0930 From: Alan Modra To: binutils@sourceware.org Subject: PowerPC64: fix build error on 32-bit hosts Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3035.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2022 04:13:10 -0000 elf64-ppc.c:11673:33: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘bfd_vma’ {aka ‘long long unsigned int’} [-Werror=format=] 11673 | fprintf (stderr, "offset = %#lx:", stub_entry->stub_offset); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | | bfd_vma {aka long long unsigned int} | long unsigned int | %#llx * elf64-ppc.c (dump_stub): Use BFD_VMA_FMT. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 77e8f596d15..570b3563f2c 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -11670,7 +11670,7 @@ dump_stub (const char *header, fprintf (stderr, "%s id = %u type = %s:%s:%s\n", header, stub_entry->id, t1, t2, t3); fprintf (stderr, "name = %s\n", stub_entry->root.string); - fprintf (stderr, "offset = %#lx:", stub_entry->stub_offset); + fprintf (stderr, "offset = 0x%" BFD_VMA_FMT "x:", stub_entry->stub_offset); for (size_t i = stub_entry->stub_offset; i < end_offset; i += 4) { asection *stub_sec = stub_entry->group->stub_sec; -- Alan Modra Australia Development Lab, IBM