[binutils] Fix building opcodes library with -Werror=format-security. Resolves #1037026

Nicholas Clifton nickc at fedoraproject.org
Thu Dec 5 13:35:25 UTC 2013


commit edae137564196bd07abdd466e462bda999a4a95f
Author: Nick Clifton <nickc at redhat.com>
Date:   Thu Dec 5 13:32:17 2013 +0000

    Fix building opcodes library with -Werror=format-security.
    Resolves #1037026

 binutils-2.24-s390-mkopc.patch |   19 +++++++++++++++++++
 binutils.spec                  |    8 +++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/binutils-2.24-s390-mkopc.patch b/binutils-2.24-s390-mkopc.patch
new file mode 100644
index 0000000..33deda8
--- /dev/null
+++ b/binutils-2.24-s390-mkopc.patch
@@ -0,0 +1,19 @@
+*** ../binutils-2.24.orig/opcodes/s390-mkopc.c	2013-12-05 13:06:00.082812690 +0000
+--- opcodes/s390-mkopc.c	2013-12-05 13:13:40.206798138 +0000
+*************** dumpTable (void)
+*** 298,304 ****
+    int  ix;
+  
+    /*  Write hash table entries (slots).  */
+!   printf (file_header);
+  
+    for (ix = 0; ix < no_ops; ix++)
+      {
+--- 298,304 ----
+    int  ix;
+  
+    /*  Write hash table entries (slots).  */
+!   printf ("%s", file_header);
+  
+    for (ix = 0; ix < no_ops; ix++)
+      {
diff --git a/binutils.spec b/binutils.spec
index 021e3da..fd1d37b 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -17,7 +17,7 @@
 Summary: A GNU collection of binary utilities
 Name: %{?cross}binutils%{?_with_debug:-debug}
 Version: 2.24
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPLv3+
 Group: Development/Tools
 URL: http://sources.redhat.com/binutils
@@ -47,6 +47,8 @@ Patch11: binutils-2.23.52.0.1-addr2line-dynsymtab.patch
 Patch12: binutils-2.23.2-kernel-ld-r.patch
 # Correct bug introduced by patch 12
 Patch13: binutils-2.23.2-aarch64-em.patch
+# Fix building opcodes library with -Werror=format-security
+Patch14: binutils-2.24-s390-mkopc.patch
 
 Provides: bundled(libiberty)
 
@@ -162,6 +164,7 @@ using libelf instead of BFD.
 %patch11 -p0 -b .addr2line~
 %patch12 -p0 -b .kernel-ld-r~
 %patch13 -p0 -b .aarch64~
+%patch14 -p0 -b .mkopc~
 
 # We cannot run autotools as there is an exact requirement of autoconf-2.59.
 
@@ -467,6 +470,9 @@ exit 0
 %endif # %{isnative}
 
 %changelog
+* Thu Dec 05 2013 Nick Clifton <nickc at redhat.com> - 2.24-8
+- Fix building opcodes library with -Werror=format-security.  (#1037026)
+
 * Wed Dec 04 2013 Jeff Law <law at redhat.com> - 2.24-7
 - Update to official binutils 2.24 release.
 


More information about the scm-commits mailing list