From 15c0289a2847eb0c7871c322bc6f2ef458747f79 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 27 May 2022 11:34:21 +0100 Subject: [PATCH] Change the ld man page so that it says that --enable-new-dtags is the default. Resolves: #2090818 --- binutils-update-linker-manual.patch | 36 +++++++++++++++++++++++++++++ binutils.spec | 11 ++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) 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..6939214 --- /dev/null +++ b/binutils-update-linker-manual.patch @@ -0,0 +1,36 @@ +diff -rup binutils.orig/ld/ld.1 binutils-2.38/ld/ld.1 +--- binutils.orig/ld/ld.1 2022-05-27 10:56:44.937044892 +0100 ++++ binutils-2.38/ld/ld.1 2022-05-27 11:10:50.311802310 +0100 +@@ -2595,7 +2595,7 @@ systems may not understand them. If you + \&\fB\-\-enable\-new\-dtags\fR, the new dynamic tags will be created as needed + and older dynamic tags will be omitted. + If you specify \fB\-\-disable\-new\-dtags\fR, 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 \s-1ELF\s0 systems. + .IP "\fB\-\-hash\-size=\fR\fInumber\fR" 4 + .IX Item "--hash-size=number" +diff -rup binutils.orig/ld/ld.info binutils-2.38/ld/ld.info +--- binutils.orig/ld/ld.info 2022-05-27 11:01:12.286346357 +0100 ++++ binutils-2.38/ld/ld.info 2022-05-27 11:11:24.585709176 +0100 +@@ -2236,7 +2236,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' +diff -rup binutils.orig/ld/ld.texi binutils-2.38/ld/ld.texi +--- binutils.orig/ld/ld.texi 2022-05-27 11:01:24.081314960 +0100 ++++ binutils-2.38/ld/ld.texi 2022-05-27 11:10:05.608923798 +0100 +@@ -2796,7 +2796,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} diff --git a/binutils.spec b/binutils.spec index d22eef8..f4664c3 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.38 -Release: 12%{?dist} +Release: 13%{?dist} License: GPLv3+ URL: https://sourceware.org/binutils @@ -313,6 +313,12 @@ Patch25: binutils-link-following.patch # Lifetime: Fixed in 2.39 Patch26: binutils-x86-non-canonical-references.patch +%if %{enable_new_dtags} +# Purpose: Change ld man page so that it says that --enable-new-dtags is the default. +# Lifetime: Permanent +Patch27: binutils-update-linker-manual.patch +%endif + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -929,6 +935,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Fri May 27 2022 Nick Clifton - 2.38-13 +- Change the ld man page so that it says that --enable-new-dtags is the default. (#2090818) + * Tue May 24 2022 Nick Clifton - 2.38-12 - x86 linker: Disallow invalid relocations against protected symbols. (#2089358)