From d00293da5e9facca58500079249c4a3ca0923ee8 Mon Sep 17 00:00:00 2001 From: yahmad Date: Thu, 9 Jun 2022 00:06:59 +0200 Subject: [PATCH] - Fix bug in binutils.spec file that was causing the wrong linker flags to be used. - Change the ld man page so that it says that --enable-new-dtags is the default. (#2090818) --- binutils-update-linker-manual.patch | 29 +++++++++++++++++++++++++++++ binutils.spec | 12 ++++++++++-- sources | 1 - 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 binutils-update-linker-manual.patch diff --git a/binutils-update-linker-manual.patch b/binutils-update-linker-manual.patch new file mode 100644 index 0000000..6394c6a --- /dev/null +++ b/binutils-update-linker-manual.patch @@ -0,0 +1,29 @@ +Only in binutils-2.37: binutils-update-linker-manual.patch +Only in binutils-2.37/ld: ld.1.orig +Only in binutils-2.37/ld: ld.1.rej +diff -rup binutils.orig/ld/ld.info binutils-2.37/ld/ld.info +--- binutils.orig/ld/ld.info 2022-06-08 17:11:56.281578073 +0200 ++++ binutils-2.37/ld/ld.info 2022-06-08 17:13:14.784873487 +0200 +@@ -2211,7 +2211,7 @@ GNU linker: + '--enable-new-dtags', the new dynamic tags will be created as + needed and older dynamic tags will be omitted. If you specify + '--disable-new-dtags', no new dynamic tags will be created. By +- default, the new dynamic tags are not created. Note that those ++ default, the new dynamic tags are created. Note that those + options are only available for ELF systems. + + '--hash-size=NUMBER' +Only in binutils-2.37/ld: ld.info.orig +diff -rup binutils.orig/ld/ld.texi binutils-2.37/ld/ld.texi +--- binutils.orig/ld/ld.texi 2022-06-08 17:11:56.281578073 +0200 ++++ binutils-2.37/ld/ld.texi 2022-06-08 17:13:14.788873503 +0200 +@@ -2773,7 +2773,7 @@ systems may not understand them. If you + @option{--enable-new-dtags}, the new dynamic tags will be created as needed + and older dynamic tags will be omitted. + If you specify @option{--disable-new-dtags}, no new dynamic tags will be +-created. By default, the new dynamic tags are not created. Note that ++created. By default, the new dynamic tags are created. Note that + those options are only available for ELF systems. + + @kindex --hash-size=@var{number} +Only in binutils-2.37/ld: ld.texi.orig diff --git a/binutils.spec b/binutils.spec index d4d55e5..f2354c9 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.37 -Release: 19%{?dist} +Release: 20%{?dist} License: GPLv3+ URL: https://sourceware.org/binutils @@ -324,6 +324,11 @@ Patch28: binutils-s390x-static-PIE.patch # Lifetime: Fixed in 2.39 Patch29: binutils-link-following.patch +%if %{enable_new_dtags} +# Purpose: Change ld man page so that it says that --enable-new-dtags is the default. +# Lifetime: Permanent +Patch30: binutils-update-linker-manual.patch +%endif #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -942,7 +947,10 @@ exit 0 #---------------------------------------------------------------------------- %changelog -%changelog +* Wed Jun 8 2022 Yara Ahmad - 2.37-31 +- Fix bug in binutils.spec file that was causing the wrong linker flags to be used. +- Change the ld man page so that it says that --enable-new-dtags is the default. (#2090818) + * Sat May 21 2022 Nick Clifton - 2.37-19 - Stop readelf and objdump from unnecessarily following links. (#2086863) diff --git a/sources b/sources index f2f878e..b8c6109 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ SHA512 (binutils-2.37.tar.xz) = 5c11aeef6935860a6819ed3a3c93371f052e52b4bdc5033da36037c1544d013b7f12cb8d561ec954fe7469a68f1b66f1a3cd53d5a3af7293635a90d69edd15e7 -SHA512 (binutils-2.19.50.0.1-output-format.sed) = 2f8686b0c8af13c98cda056824c2820416f6e2d003f70b78ccf5314525b9ee3684d421dfa83e638a2d42d06ea4d4bdaf5226b64d6ec26f7ff59c44ffb2a23dd2