diff --git a/binutils-gold-ignore-execstack-error.patch b/binutils-gold-ignore-execstack-error.patch new file mode 100644 index 0000000..356f43b --- /dev/null +++ b/binutils-gold-ignore-execstack-error.patch @@ -0,0 +1,16 @@ +diff -rup binutils.orig/gold/options.h binutils-2.41/gold/options.h +--- binutils.orig/gold/options.h 2024-01-04 09:52:09.282002253 +0000 ++++ binutils-2.41/gold/options.h 2024-01-04 09:52:51.890972630 +0000 +@@ -855,6 +855,12 @@ class General_options + N_("(ARM only) Do not warn about objects with incompatible " + "enum sizes")); + ++ DEFINE_bool_ignore(error_execstack, options::TWO_DASHES, '\0', ++ N_("Ignored"), N_("Ignored")); ++ ++ DEFINE_bool_ignore(error_rwx_segments, options::TWO_DASHES, '\0', ++ N_("Ignored"), N_("Ignored")); ++ + DEFINE_special(exclude_libs, options::TWO_DASHES, '\0', + N_("Exclude libraries from automatic export"), + N_(("lib,lib ..."))); diff --git a/binutils.spec b/binutils.spec index 6dabf30..cb8d684 100644 --- a/binutils.spec +++ b/binutils.spec @@ -2,7 +2,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?_with_debug:-debug} Version: 2.41 -Release: 18%{?dist} +Release: 19%{?dist} License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later LGPL-2.1-or-later AND LGPL-2.0-or-later URL: https://sourceware.org/binutils @@ -302,6 +302,10 @@ Patch31: i686-AVX10.1-part-6.patch # Lifetime: Fixed in 2.42 Patch32: binutils-riscv-SUB_ULEB128.patch +# Purpose: Let the gold lihnker ignore --error-execstack and --error-rwx-segments. +# Lifetime: Fixed in 2.42 (maybe) +Patch33: binutils-gold-ignore-execstack-error.patch + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -1327,6 +1331,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Thu Jan 04 2024 Nick Clifton - 2.41-19 +- Have the gold linker ignore the --error-execstack and --error-rwx-segments options. + * Tue Jan 02 2024 Nick Clifton - 2.41-18 - Fix handling of Risc-V SUB_LEB128 relocation. (PR31179)