From cab460f0a44e76f0eb92060704bdb107ed7adb7d Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 20 Aug 2023 12:02:10 -0600 Subject: util/crossgcc: rename binutils patch from 'loosing' to 'losing' This binutils patch was pushed by the original author using the word "loosing", which means "to release" instead of "losing", meaning to drop or misplace. I did not change the spelling of the commit message inside the patch so that the patch can still be tracked easily, but wanted to fix the mistaken spelling which appears when the patch is applied when building the crossgcc toolchain. Signed-off-by: Martin Roth Change-Id: I66fd596a79c9eb331f473d175180cf7bb5a38529 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77327 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- ...stop_loosing_entry_point_when_LTO_enabled.patch | 42 ---------------------- ..._stop_losing_entry_point_when_LTO_enabled.patch | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 util/crossgcc/patches/binutils-2.40_stop_loosing_entry_point_when_LTO_enabled.patch create mode 100644 util/crossgcc/patches/binutils-2.40_stop_losing_entry_point_when_LTO_enabled.patch (limited to 'util/crossgcc') diff --git a/util/crossgcc/patches/binutils-2.40_stop_loosing_entry_point_when_LTO_enabled.patch b/util/crossgcc/patches/binutils-2.40_stop_loosing_entry_point_when_LTO_enabled.patch deleted file mode 100644 index 548540c8c4..0000000000 --- a/util/crossgcc/patches/binutils-2.40_stop_loosing_entry_point_when_LTO_enabled.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 3539414584be0094b0a4fe56dfd64ea79d802edc Mon Sep 17 00:00:00 2001 -From: Nick Clifton -Date: Thu, 4 May 2023 14:24:16 +0100 -Subject: [PATCH] Stop the linker from loosing the entry point for COFF/PE code - when compiling with LTO enabled. - - PR 30300 - * emultempl/pep.em (set_entry_point): Add an undefined reference to the entry point if it has been constructed heuristically. - * emultempl/pe.em (set_entry_point): Likewise. ---- - -diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em -index 55412d6ef9e..1f2a5f310be 100644 ---- a/ld/emultempl/pe.em -+++ b/ld/emultempl/pe.em -@@ -659,6 +659,9 @@ set_entry_point (void) - } - - lang_default_entry (entry); -+ -+ if (bfd_link_executable (&link_info) && ! entry_from_cmdline) -+ ldlang_add_undef (entry, false); - } - - static void -diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em -index 2a3fd0e6ea8..ca4acaea148 100644 ---- a/ld/emultempl/pep.em -+++ b/ld/emultempl/pep.em -@@ -631,6 +631,9 @@ set_entry_point (void) - } - - lang_default_entry (entry); -+ -+ if (bfd_link_executable (&link_info) && ! entry_from_cmdline) -+ ldlang_add_undef (entry, false); - } - - static void --- -2.31.1 - diff --git a/util/crossgcc/patches/binutils-2.40_stop_losing_entry_point_when_LTO_enabled.patch b/util/crossgcc/patches/binutils-2.40_stop_losing_entry_point_when_LTO_enabled.patch new file mode 100644 index 0000000000..548540c8c4 --- /dev/null +++ b/util/crossgcc/patches/binutils-2.40_stop_losing_entry_point_when_LTO_enabled.patch @@ -0,0 +1,42 @@ +From 3539414584be0094b0a4fe56dfd64ea79d802edc Mon Sep 17 00:00:00 2001 +From: Nick Clifton +Date: Thu, 4 May 2023 14:24:16 +0100 +Subject: [PATCH] Stop the linker from loosing the entry point for COFF/PE code + when compiling with LTO enabled. + + PR 30300 + * emultempl/pep.em (set_entry_point): Add an undefined reference to the entry point if it has been constructed heuristically. + * emultempl/pe.em (set_entry_point): Likewise. +--- + +diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em +index 55412d6ef9e..1f2a5f310be 100644 +--- a/ld/emultempl/pe.em ++++ b/ld/emultempl/pe.em +@@ -659,6 +659,9 @@ set_entry_point (void) + } + + lang_default_entry (entry); ++ ++ if (bfd_link_executable (&link_info) && ! entry_from_cmdline) ++ ldlang_add_undef (entry, false); + } + + static void +diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em +index 2a3fd0e6ea8..ca4acaea148 100644 +--- a/ld/emultempl/pep.em ++++ b/ld/emultempl/pep.em +@@ -631,6 +631,9 @@ set_entry_point (void) + } + + lang_default_entry (entry); ++ ++ if (bfd_link_executable (&link_info) && ! entry_from_cmdline) ++ ldlang_add_undef (entry, false); + } + + static void +-- +2.31.1 + -- cgit v1.2.3