Fix problems running the linkers LTO testsuite.

Resolves: #2117284
This commit is contained in:
Nick Clifton 2022-08-11 10:27:42 +01:00
parent da676ef767
commit 2391c3b9ee
2 changed files with 17 additions and 1 deletions

View File

@ -950,3 +950,16 @@ diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r binutils-2.37/ld/tests
}
if {[is_elf_format]} then {
--- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2022-08-11 09:47:38.597862309 +0100
+++ binutils-2.37/ld/testsuite/ld-plugin/lto.exp 2022-08-11 09:48:23.878601461 +0100
@@ -31,8 +31,8 @@ if { ![check_plugin_api_available]
set saved_CFLAGS "$CFLAGS"
set saved_CXXFLAGS "$CXXFLAGS"
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS "" CFLAGS
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS "" CXXFLAGS
+# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS "" CFLAGS
+# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS "" CXXFLAGS
proc restore_notify { } {
global saved_CFLAGS

View File

@ -39,7 +39,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?name_cross}%{?_with_debug:-debug}
Version: 2.37
Release: 24%{?dist}
Release: 25%{?dist}
License: GPLv3+
URL: https://sourceware.org/binutils
@ -955,6 +955,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Thu Aug 11 2022 Nick Clifton <nickc@redhat.com> - 2.37-25
- Fix problems running the linkers LTO testsuite. (#2117284)
* Wed Aug 10 2022 Yara Ahmad <yahmad@redhat.com> - 2.37-24
- Fixes warning when running strip on an object file (#2114597)