mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 12:41:59 +03:00
Toolchain+Ports: Fix building binutils on FreeBSD
This imports the upstream patch from https://sourceware.org/bugzilla/show_bug.cgi?id=27382 Fixes #7407.
This commit is contained in:
parent
2d38d56e29
commit
988dfa7f33
Notes:
sideshowbarker
2024-07-18 12:43:19 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/988dfa7f332 Pull-request: https://github.com/SerenityOS/serenity/pull/7863 Issue: https://github.com/SerenityOS/serenity/issues/7407
@ -133,3 +133,15 @@ diff -Naur binutils-2.36.1/ld/Makefile.in binutils-2.36.1.serenity/ld/Makefile.i
|
|||||||
ehppa64linux.c \
|
ehppa64linux.c \
|
||||||
ei386pep.c \
|
ei386pep.c \
|
||||||
emmo.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;
|
||||||
|
@ -133,3 +133,15 @@ diff -Naur binutils-2.36.1/ld/Makefile.in binutils-2.36.1.serenity/ld/Makefile.i
|
|||||||
ehppa64linux.c \
|
ehppa64linux.c \
|
||||||
ei386pep.c \
|
ei386pep.c \
|
||||||
emmo.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;
|
||||||
|
Loading…
Reference in New Issue
Block a user