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 82DE2385840C for ; Tue, 23 May 2023 13:11:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 82DE2385840C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-64d24136685so3467408b3a.1 for ; Tue, 23 May 2023 06:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684847513; x=1687439513; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=+xnjAfQkycjSkt2AskgevbECcwj3jXCyjbQphatCcpM=; b=hDav9NPZVe8Q8kaTvIc9pogjTK8WfXTQtsDXL7fzh6Unc1r1UZ9kDSJUfBYkAJAQPd ibZ2UBlusQ06i6p7Z5Nzq1Dfq1EFHZZBjwp9XBLY2GA0+onLfkrgqU6FRzqv+DwlgEIL 5PGNMXlBPEX7fd5mxAgXkORmfreU3UEWFplmOlb9+o5q/hwcGkdLTiOlI9Br9yc1fKqS yu0CjfvmNOzVppwzI/4//AGLu7R3hIr/28eDe228eguf/yl6RkS7s/UBF/59kV2LXXQi TMqxOpwJnSrbT+qDiwUTVQ42FDBty74wAZ1Yd1cNVrnBLb5DMNDOp3M79bsKFyiHgsR7 onZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684847513; x=1687439513; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+xnjAfQkycjSkt2AskgevbECcwj3jXCyjbQphatCcpM=; b=FjqqKgsem7GIF7LVChDtJ2cYWlA9e2tRG2kLCKn/zUdiXqEJhKgWdSPbaIcv5Ml+Cg IOb1xFbHGfCZ1LM+lQ8/U+vwU1K8DYBnKiRTGWF3w+YrDZFZ9VkBOolqTXTIqWCgKBOW W3+blQhbZRTbYGdemZ8OZDlxNGFPThNuLikarkQzlqR9T0OZApDJ4BuA27TFYKFySlKO mAE5xB9JfPp1T0HVbGn2SQC8Vqj+hN8wBqJCPGJB+yJnvtC3KRs/8E23TowPpTd4sE/Q 9x/bufzARm7+jC/2NdqAxP4Z3djK0jVLz+aoBysq10+ijSaH+2tiBRY6UrVHCDPS2y1t FlZw== X-Gm-Message-State: AC+VfDz+dkBmNdaOwRZ66ohfvrjmkbqmfTqJ84WD+KesiMZB+pziZ+gH oS7vY5lrwEVuPCr1/leqsbA= X-Google-Smtp-Source: ACHHUZ6g4pYupBcFfnC6sahrBrL5C/ZGVshmd3enkOj5Z8JCgqbFQHGO/o8hO1gNbye9jZgkw6HxuQ== X-Received: by 2002:a05:6a00:1f05:b0:64d:411b:3a0c with SMTP id be5-20020a056a001f0500b0064d411b3a0cmr10539122pfb.14.1684847513448; Tue, 23 May 2023 06:11:53 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id v11-20020a62a50b000000b0063799398eaesm5743557pfm.51.2023.05.23.06.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 06:11:52 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id F37F81142D34; Tue, 23 May 2023 22:41:48 +0930 (ACST) Date: Tue, 23 May 2023 22:41:48 +0930 From: Alan Modra To: =?iso-8859-1?Q?Cl=E9ment?= Chigot Cc: Nick Clifton , =?iso-8859-1?Q?Cl=E9ment?= Chigot via Binutils Subject: Re: Failure with PR16566 new test on Mingw hosts Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-3028.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 List-Id: On Tue, May 23, 2023 at 10:48:06AM +0200, Clément Chigot via Binutils wrote: > I don't know why but this seems to be triggered by the new call to > bfd_canonicalize_symtab introduced when we are logging the local > symbols [1]. > Any idea about what's going on ? The output file is opened "w+b". ldwrite() will cause some of the file to be written, but not all is output until bfd_close(). So reading the symbols means the file IO is write, read, write. Wild guess: no fseek or similar between changes in direction? bfd_seek doesn't call fseek if the file position doesn't move. > [1] https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=ld/ldlang.c;hb=HEAD#l4918 > > Thanks, > Clément -- Alan Modra Australia Development Lab, IBM