Created attachment 13211 [details] Fix to a missing cast in fileno() usage binutils/objcopy.c copy_file fileno() usage is missing a cast and hence the build fails on systems where fileno() is a macro. Patch is included.
The binutils-2_36-branch branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7651a4871c225925ffdfda0a8c91a6ed370cd9a1 commit 7651a4871c225925ffdfda0a8c91a6ed370cd9a1 Author: Alan Modra <amodra@gmail.com> Date: Tue Feb 9 13:32:36 2021 +1030 PR27382, build failure if fileno() is a macro PR 27382 * objcopy.c (copy_file): Use bfd_stat.
Fixed again. We lost the fix for this bug in reverting smart_rename changes.