diff --git a/binutils-readelf-no-warn-gaps.patch b/binutils-readelf-no-warn-gaps.patch new file mode 100644 index 0000000..2bcd0c6 --- /dev/null +++ b/binutils-readelf-no-warn-gaps.patch @@ -0,0 +1,19 @@ +--- binutils.orig/binutils/readelf.c 2021-02-22 10:44:20.142262864 +0000 ++++ binutils-2.35.1/binutils/readelf.c 2021-02-22 10:45:25.646842120 +0000 +@@ -19285,6 +19285,7 @@ print_gnu_build_attribute_description (E + + if (is_open_attr) + { ++#if 0 /* Suppressed because these gaps are no longer significant. */ + /* FIXME: Need to properly allow for section alignment. + 16 is just the alignment used on x86_64. */ + if (global_end > 0 +@@ -19295,7 +19296,7 @@ print_gnu_build_attribute_description (E + && same_section (filedata, start, global_end)) + warn (_("Gap in build notes detected from %#lx to %#lx\n"), + global_end + 1, start - 1); +- ++#endif + printf (_(" Applies to region from %#lx"), start); + global_offset = start; + diff --git a/binutils.spec b/binutils.spec index 8ed3867..f37cca5 100644 --- a/binutils.spec +++ b/binutils.spec @@ -39,7 +39,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?name_cross}%{?_with_debug:-debug} Version: 2.35.1 -Release: 36%{?dist} +Release: 37%{?dist} License: GPLv3+ URL: https://sourceware.org/binutils @@ -346,6 +346,10 @@ Patch37: binutils-s390-arch14-insns.patch # Lifetime: Fixed in 2.37 Patch38: binutils-ppc64le-note-merge.patch +# Purpose: Stop readelf from warning about gaps in build notes. +# Lifetime: Fixed in 2.37 ? +Patch39: binutils-readelf-no-warn-gaps.patch + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -931,6 +935,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Mon Feb 22 2021 Nick Clifton - 2.35.1-37 +- Stop readelf from warning about gaps in notes. (#1931356) + * Fri Feb 19 2021 Nick Clifton - 2.35.1-36 - Fix merging ppc64le notes. (#1928936)