PR 27382
* objcopy.c (copy_file): Use bfd_stat.
+2021-02-09 Alan Modra <amodra@gmail.com>
+
+ PR 27382
+ * objcopy.c (copy_file): Use bfd_stat.
+
2021-02-06 Nick Clifton <nickc@redhat.com>
This is the 2.36.1 release.
/* 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;