diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-07 08:30:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-07 09:51:12 +0200 |
commit | 988dfa7f3322865bda6d74a0116cad7855d5d3a8 (patch) | |
tree | 2a06bfc45fa43289f4da3d6dd56b3d8e382d1bcb /Ports/binutils/patches | |
parent | 2d38d56e291226f2379bee067dcd467e4929477f (diff) | |
download | serenity-988dfa7f3322865bda6d74a0116cad7855d5d3a8.zip |
Toolchain+Ports: Fix building binutils on FreeBSD
This imports the upstream patch from
https://sourceware.org/bugzilla/show_bug.cgi?id=27382
Fixes #7407.
Diffstat (limited to 'Ports/binutils/patches')
-rw-r--r-- | Ports/binutils/patches/binutils.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Ports/binutils/patches/binutils.patch b/Ports/binutils/patches/binutils.patch index cc076fdf64..8718a1fde4 100644 --- a/Ports/binutils/patches/binutils.patch +++ b/Ports/binutils/patches/binutils.patch @@ -133,3 +133,15 @@ diff -Naur binutils-2.36.1/ld/Makefile.in binutils-2.36.1.serenity/ld/Makefile.i ehppa64linux.c \ ei386pep.c \ emmo.c +diff -Naur binutils-2.36.1/binutils/objcopy.c binutils-2.36.1.serenity/binutils/objcopy.c +--- binutils-2.36.1/binutils/objcopy.c 2021-02-05 15:13:40.000000000 +0100 ++++ binutils-2.36.1.serenity/binutils/objcopy.c 2021-06-07 08:28:08.961581287 +0200 +@@ -3769,7 +3769,7 @@ + /* 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; |