Strip: Do not merge notes unless explicitly requested to do so.
This commit is contained in:
parent
1a47df5d0d
commit
b0bbc38aef
@ -1874,3 +1874,23 @@ diff -rupN binutils.orig/binutils/testsuite/binutils-all/objcopy.exp binutils-2.
|
|||||||
}
|
}
|
||||||
|
|
||||||
free (pnotes);
|
free (pnotes);
|
||||||
|
--- binutils.orig/binutils/objcopy.c 2019-11-06 13:37:33.952297613 +0000
|
||||||
|
+++ binutils-2.33.1/binutils/objcopy.c 2019-11-06 13:38:23.751933043 +0000
|
||||||
|
@@ -4660,7 +4660,7 @@ strip_main (int argc, char *argv[])
|
||||||
|
strip_usage (stderr, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+#if 0
|
||||||
|
/* If the user has not expressly chosen to merge/not-merge ELF notes
|
||||||
|
then enable the merging unless we are stripping debug or dwo info. */
|
||||||
|
if (! merge_notes_set
|
||||||
|
@@ -4670,7 +4670,7 @@ strip_main (int argc, char *argv[])
|
||||||
|
|| strip_symbols == STRIP_NONDEBUG
|
||||||
|
|| strip_symbols == STRIP_NONDWO))
|
||||||
|
merge_notes = TRUE;
|
||||||
|
-
|
||||||
|
+#endif
|
||||||
|
if (formats_info)
|
||||||
|
{
|
||||||
|
display_info ();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: %{?cross}binutils%{?_with_debug:-debug}
|
Name: %{?cross}binutils%{?_with_debug:-debug}
|
||||||
Version: 2.33.1
|
Version: 2.33.1
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -765,6 +765,9 @@ exit 0
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 06 2019 Nick Clifton <nickc@redhat.com> - 2.33-5
|
||||||
|
- Strip: Do not merge notes unless explicitly requested to do so.
|
||||||
|
|
||||||
* Tue Nov 05 2019 Nick Clifton <nickc@redhat.com> - 2.33-4
|
* Tue Nov 05 2019 Nick Clifton <nickc@redhat.com> - 2.33-4
|
||||||
- Objcopy: Do not generate a failure exit status if note merging fails. (#1767937)
|
- Objcopy: Do not generate a failure exit status if note merging fails. (#1767937)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user