Have the gold linker ignore the --error-execstack and --error-rwx-segments options.

This commit is contained in:
Nick Clifton 2024-01-04 10:56:42 +00:00
parent 05f5ab6f6f
commit 8f1ba5b061
2 changed files with 24 additions and 1 deletions

View File

@ -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 ...")));

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug} Name: binutils%{?_with_debug:-debug}
Version: 2.41 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 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 URL: https://sourceware.org/binutils
@ -302,6 +302,10 @@ Patch31: i686-AVX10.1-part-6.patch
# Lifetime: Fixed in 2.42 # Lifetime: Fixed in 2.42
Patch32: binutils-riscv-SUB_ULEB128.patch 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) Provides: bundled(libiberty)
@ -1327,6 +1331,9 @@ exit 0
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%changelog %changelog
* Thu Jan 04 2024 Nick Clifton <nickc@redhat.com> - 2.41-19
- Have the gold linker ignore the --error-execstack and --error-rwx-segments options.
* Tue Jan 02 2024 Nick Clifton <nickc@redhat.com> - 2.41-18 * Tue Jan 02 2024 Nick Clifton <nickc@redhat.com> - 2.41-18
- Fix handling of Risc-V SUB_LEB128 relocation. (PR31179) - Fix handling of Risc-V SUB_LEB128 relocation. (PR31179)