Message ID | 20210209032356.GV5348@bubble.grove.modra.org |
---|---|
State | New |
Headers | show
Delivered-To: patches-gcc@linaro.org Received: by 2002:a4a:af48:0:0:0:0:0 with SMTP id x8csp156681oon; Mon, 8 Feb 2021 19:24:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2sDsEfzhx5rkeYFhGZh1542ba6RqrSt5a6iP27qaFweBLe0YTlAJz/5p6+yu3Un1hpCNH X-Received: by 2002:aa7:d98f:: with SMTP id u15mr20635348eds.267.1612841045731; Mon, 08 Feb 2021 19:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612841045; cv=none; d=google.com; s=arc-20160816; b=XYibjc3dFJXaPtoWzQqZr7CM3b+vcoII5XzBXU1hpA+dz7uDKhyj07E0Jw2KNo8UZc IlcrEn2PMnDh80Thz4WzfRPGk0xlGeoucw66AG70rbcxuD+xH4m1fObT9AQI8TtKI7zT oPy5Vug/KvrOTL3gBYvHZRYovUUMZ6WtRv3FNFhAJGVb8AL3rRhqvkk1BqEgRFMCdRDW sW6M+XYfFWXYgeQPnRaqDm0q66NTSzUpsC6JEE1q+PbM9mg+B7xfRHT/4Hueu0rSixD7 zDwl2joIfPKV/LVeFc7Z+yFKZS1nS6BwcZ8nDaq36tlGKlq3Mj+LnGK2c8w8jKPvp81R nO3w== 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:user-agent :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=yAXsUTvsc/ELMf0P/XW2TewYshW/0V4KsIqDjZ1LGkE=; b=sU7xG29Acm0+gkjTjt+5XGtyWXKlK3UBTdtq0ZlAeNCunQ9ieMlbox8aRjexaLZFWe dA7p/gmzfBP5nWfxm9LOPRpKZYgXsRnhS4PpfOTMQ4sTxhRbMk2NVqH5BA/4RF1oh9Yt Gb6CnMgtuXBKJyfU0h7Bxw2XsC5po27HQYa6ZgrjGWuJzz+NkomXnoyx3ON3iBQtPjmu UYblCpqiB0+rIZb/RUUPg/5CmPdIGfxFuYsphvKIlczthS7/jlLylH40CYTWtQw5jZD6 YSpandpqip5z2aVzVC/3onME6/O7v6NpO6Q5+TU5sXeC6PDtOILZyvBen6KFpEouSfFY N9yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Q0HaoUl5; spf=pass (google.com: domain of binutils-bounces@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom=binutils-bounces@sourceware.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Return-Path: <binutils-bounces@sourceware.org> Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f16si14899039edy.306.2021.02.08.19.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 19:24:05 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Q0HaoUl5; spf=pass (google.com: domain of binutils-bounces@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom=binutils-bounces@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 B3DF239730EF; Tue, 9 Feb 2021 03:24:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3DF239730EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612841043; bh=yAXsUTvsc/ELMf0P/XW2TewYshW/0V4KsIqDjZ1LGkE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Q0HaoUl5dOqGKnMt7qiaVsm22EHyXCRFuByOBHqC+iamuJMzdsCWXwy5jB+RnAFW2 BW5QEsu3anfD8LcLVXs8i1kQLLsEABeK63DNYS/ljkV2g/Fidz0T+AuglGRglrmANj MjOwf6lnOhoaGXxqymrHOOLjUu2XSis1VuICiwg4= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 0B2DE3858024 for <binutils@sourceware.org>; Tue, 9 Feb 2021 03:24:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0B2DE3858024 Received: by mail-pg1-x529.google.com with SMTP id n10so11571154pgl.10 for <binutils@sourceware.org>; Mon, 08 Feb 2021 19:24:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=yAXsUTvsc/ELMf0P/XW2TewYshW/0V4KsIqDjZ1LGkE=; b=hROhRI3CEYUFH6hdXnebJCAeQoKMd9ecT4Lo9KuwoZrvfQM4my20oI+xej2322PWAQ 8JqHjbca4zzw7ZIBMX4RGGeLggFEIwsbGhwfSv66dpQ5ekPNYNXK6EVrzccpcJkzuJ7g bGtygFRyPKPcjboUXZ95MOJQKpv2UB/iLZ9Q4cusRA5sWyyLKGaAxTa7BihALpnSeveB ugEwy7HmGQtFEU2fnXisLKwxqSE8ckvXDSI6tFrUu4/39/v8At60w5jpKYU2MRh3FyKh M7xpfsrM5VuOiK/8CeARCRooMF70ukjl0qpzoPUn8c2HpFvA6AKchxCUchL90g+TWNxG q5cw== X-Gm-Message-State: AOAM532OXN6R4l1V3izZrK5u+rs4p5GgCybzA3PoRQu8cDlIlWkhaGN8 Skh9p9BZPPfigHiC3+tGNqra7KMH0y/Y7Q== X-Received: by 2002:aa7:800d:0:b029:1d5:6701:68f with SMTP id j13-20020aa7800d0000b02901d56701068fmr21464153pfi.30.1612841040813; Mon, 08 Feb 2021 19:24:00 -0800 (PST) Received: from bubble.grove.modra.org ([2406:3400:51d:8cc0:f40b:f538:b98:a1ba]) by smtp.gmail.com with ESMTPSA id t25sm20033139pgv.30.2021.02.08.19.23.59 for <binutils@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 19:24:00 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 74E4141BB3; Tue, 9 Feb 2021 13:53:56 +1030 (ACDT) Date: Tue, 9 Feb 2021 13:53:56 +1030 To: binutils@sourceware.org Subject: PR27382, build failure if fileno() is a macro Message-ID: <20210209032356.GV5348@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-10.9 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.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 <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> From: Alan Modra via Binutils <binutils@sourceware.org> Reply-To: Alan Modra <amodra@gmail.com> Errors-To: binutils-bounces@sourceware.org Sender: "Binutils" <binutils-bounces@sourceware.org> |
Series |
|
Related |
show
|
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 00d751522c4..eab3b6db585 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -3769,7 +3769,7 @@ copy_file (const char *input_filename, const char *output_filename, int ofd, /* To allow us to do "strip *" without dying on the first non-object file, failures are nonfatal. */ ibfd = bfd_openr (input_filename, input_target); - if (ibfd == NULL || fstat (fileno (ibfd->iostream), in_stat) != 0) + if (ibfd == NULL || bfd_stat (ibfd, in_stat) != 0) { bfd_nonfatal_message (input_filename, NULL, NULL, NULL); status = 1;