Fix linker testsuite failure

This commit is contained in:
Nick Clifton 2022-07-28 10:35:16 +01:00
parent 544bea2339
commit 17f6d21f57
2 changed files with 32 additions and 2 deletions

View File

@ -980,3 +980,30 @@ diff -rup binutils.orig/ld/testsuite/lib/ld-lib.exp binutils-2.38/ld/testsuite/l
if [check_ctf_available] {
return 0
}
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp 2022-07-28 08:36:10.805963313 +0100
+++ binutils-2.38/ld/testsuite/ld-x86-64/x86-64.exp 2022-07-28 08:40:35.482073002 +0100
@@ -1886,24 +1886,6 @@ if { [isnative] && [check_compiler_avail
"-fPIE" \
] \
[list \
- "Run protected-data-1a without PIE" \
- "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-data-1a.so" \
- "-Wa,-mx86-used-note=yes" \
- { protected-data-1b.c } \
- "protected-data-1a" \
- "pass.out" \
- "$NOPIE_CFLAGS" \
- ] \
- [list \
- "Run protected-data-1b with PIE" \
- "-Wl,--no-as-needed -pie tmpdir/libprotected-data-1a.so" \
- "-Wa,-mx86-used-note=yes" \
- { protected-data-1b.c } \
- "protected-data-1b" \
- "pass.out" \
- "-fPIE" \
- ] \
- [list \
"Run protected-data-2a without PIE" \
"$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-data-2a.so" \
"-Wa,-mx86-used-note=yes" \

View File

@ -39,7 +39,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?name_cross}%{?_with_debug:-debug}
Version: 2.38
Release: 21%{?dist}
Release: 22%{?dist}
License: GPLv3+
URL: https://sourceware.org/binutils
@ -681,7 +681,7 @@ esac
%if %{without testsuite}
echo ====================TESTSUITE DISABLED=========================
%else
make -k check < /dev/null || :
make -k check < /dev/null
echo ====================TESTING=========================
cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
%if %{with gold}
@ -944,6 +944,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Thu Jul 28 2022 Nick Clifton <nickc@redhat.com> - 2.38-22
- Fix a couple of x86_64 linker testsuite failures.
* Tue Jul 26 2022 Nick Clifton <nickc@redhat.com> - 2.38-21
- Tweak the PowerPC assembler's handling of the .machine directive. (#2111082)