[binutils/f13/master] Fix seg fault in sec_merge_emit(). (BZ 623687)

Nicholas Clifton nickc at fedoraproject.org
Fri Aug 20 13:45:45 UTC 2010


commit 53506d5bae146102118f1f19f2b4bf9d9340b6bf
Author: Nick Clifton <nickc at redhat.com>
Date:   Fri Aug 20 14:44:41 2010 +0100

    Fix seg fault in sec_merge_emit().  (BZ 623687)

 binutils-2.20.51.0.2-sec-merge-emit.patch |   12 ++++++++++++
 binutils.spec                             |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/binutils-2.20.51.0.2-sec-merge-emit.patch b/binutils-2.20.51.0.2-sec-merge-emit.patch
new file mode 100644
index 0000000..21124ce
--- /dev/null
+++ b/binutils-2.20.51.0.2-sec-merge-emit.patch
@@ -0,0 +1,12 @@
+*** ../binutils-2.20.51.0.2.orig/bfd/merge.c	2010-08-20 13:23:10.000000000 +0100
+--- bfd/merge.c	2010-08-20 13:28:02.000000000 +0100
+*************** sec_merge_emit (bfd *abfd, struct sec_me
+*** 324,329 ****
+--- 324,330 ----
+    /* Trailing alignment needed?  */
+    off = sec->size - off;
+    if (off != 0
++       && alignment_power
+        && bfd_bwrite (pad, off, abfd) != off)
+      goto err;
+  
diff --git a/binutils.spec b/binutils.spec
index 939695e..dae811e 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.20.51.0.2
-Release: 22%{?dist}
+Release: 23%{?dist}
 License: GPLv3+
 Group: Development/Tools
 URL: http://sources.redhat.com/binutils
@@ -44,6 +44,7 @@ Patch18: binutils-2.20.51.0.2-dwarf4.patch
 Patch19: binutils-2.20.51.0.2-unique-archive-symbols.patch
 Patch20: binutils-2.20.51.0.2-gold-add-needed.patch
 Patch21: binutils-2.20.51.0.2-gold-INPUT.patch
+Patch22: binutils-2.20.51.0.2-sec-merge-emit.patch
 
 %define gold_arches %ix86 x86_64
 
@@ -157,6 +158,7 @@ libelf instead of BFD.
 %patch19 -p0 -b .unique~
 %patch20 -p0 -b .gold-add-needed~
 %patch21 -p0 -b .gold-input~
+%patch22 -p0 -b .sec-merge-emit~
 
 # We cannot run autotools as there is an exact requirement of autoconf-2.59.
 
@@ -459,6 +461,9 @@ exit 0
 %endif # %{isnative}
 
 %changelog
+* Fri Aug  20 2010 Nick Clifton <nickc at redhat.com> - 2.20.51.0.2-23
+- Fix seg fault in sec_merge_emit().  (BZ 623687)
+
 * Wed Jun   9 2010 Nick Clifton <nickc at redhat.com> - 2.20.51.0.2-22
 - Allow GOLD linker to parse "-l<name>" directives inside INPUT statements in linker scripts. (BZ 600553)
 


More information about the scm-commits mailing list