diff --git a/binutils-2.20.51.0.7-gas-long-lines.patch b/binutils-2.20.51.0.7-gas-long-lines.patch new file mode 100644 index 0000000..524b787 --- /dev/null +++ b/binutils-2.20.51.0.7-gas-long-lines.patch @@ -0,0 +1,37 @@ +diff -rcp ../binutils-2.20.51.0.7.orig/gas/ChangeLog gas/ChangeLog +*** ../binutils-2.20.51.0.7.orig/gas/ChangeLog 2010-11-15 10:22:30.000000000 +0000 +--- gas/ChangeLog 2010-11-15 10:23:12.000000000 +0000 +*************** +*** 1,3 **** +--- 1,9 ---- ++ 2010-03-30 H.J. Lu ++ ++ PR gas/11456 ++ * input-scrub.c (input_scrub_next_buffer): Use memmove instead ++ of memcpy to copy overlap memory. ++ + 2010-03-18 Wei Guozhi + + PR gas/11323 +diff -rcp ../binutils-2.20.51.0.7.orig/gas/input-scrub.c gas/input-scrub.c +*** ../binutils-2.20.51.0.7.orig/gas/input-scrub.c 2010-11-15 10:22:30.000000000 +0000 +--- gas/input-scrub.c 2010-11-15 10:22:45.000000000 +0000 +*************** input_scrub_next_buffer (char **bufp) +*** 343,350 **** + + if (partial_size) + { +! memcpy (buffer_start + BEFORE_SIZE, partial_where, +! (unsigned int) partial_size); + memcpy (buffer_start + BEFORE_SIZE, save_source, AFTER_SIZE); + } + limit = input_file_give_next_buffer (buffer_start +--- 343,350 ---- + + if (partial_size) + { +! memmove (buffer_start + BEFORE_SIZE, partial_where, +! (unsigned int) partial_size); + memcpy (buffer_start + BEFORE_SIZE, save_source, AFTER_SIZE); + } + limit = input_file_give_next_buffer (buffer_start diff --git a/binutils.spec b/binutils.spec index 92a41c0..40a9908 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.7 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -35,6 +35,7 @@ Patch09: binutils-2.20.51.0.7-do-not-bind-unique-symbols-locally.patch Patch10: binutils-2.20.51.0.7-dwarf4.patch Patch11: binutils-2.20.51.0.7-unique-archive-symbols.patch Patch12: binutils-2.20.51.0.7-gold-INPUT.patch +Patch13: binutils-2.20.51.0.7-gas-long-lines.patch %define gold_arches %ix86 x86_64 @@ -137,6 +138,7 @@ using libelf instead of BFD. %patch10 -p0 -b .dwarf4~ %patch11 -p0 -b .unique~ %patch12 -p0 -b .gold-input~ +%patch13 -p0 -b .long-lines~ # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -419,6 +421,9 @@ exit 0 %endif # %{isnative} %changelog +* Mon Nov 15 2010 Nick Clifton - 2.20.51.0.7-6 +- Fix problem assembling long lines. (PR 11456, BZ 643305) + * Wed Jun 30 2010 Nick Clifton - 2.20.51.0.7-5 - Rename the binutils-static package to binutils-devel in line with the Fedora packaging guidelines.