From f2ccd3a879ee5922098983c2e2fac50508cf02b0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Jan 25 2013 10:42:29 +0000 Subject: Allow more whitespace in ARM instructions. Resolves: #892261 --- diff --git a/binutils-2.23.51.0.1-arm-whitespace.patch b/binutils-2.23.51.0.1-arm-whitespace.patch new file mode 100644 index 0000000..ad401f8 --- /dev/null +++ b/binutils-2.23.51.0.1-arm-whitespace.patch @@ -0,0 +1,26 @@ +*** ../binutils-2.23.51.0.1.orig/gas/config/tc-arm.c 2013-01-25 10:22:50.082164710 +0000 +--- gas/config/tc-arm.c 2013-01-25 10:25:23.668311486 +0000 +*************** const char FLT_CHARS[] = "rRsSfFdDxXeEpP +*** 872,877 **** +--- 872,880 ---- + static inline int + skip_past_char (char ** str, char c) + { ++ /* PR gas/14987: Allow for whitespace before the expected character. */ ++ skip_whitespace (*str); ++ + if (**str == c) + { + (*str)++; +*************** parse_address_main (char **str, int i, i +*** 5155,5160 **** +--- 5158,5166 ---- + return PARSE_OPERAND_SUCCESS; + } + ++ /* PR gas/14887: Allow for whitespace after the opening bracket. */ ++ skip_whitespace (p); ++ + if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL) + { + inst.error = _(reg_expected_msgs[REG_TYPE_RN]); diff --git a/binutils.spec b/binutils.spec index cbaf767..6245297 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.23.51.0.1 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -45,6 +45,7 @@ Patch11: binutils-2.23.51.0.1-gold-keep.patch # Bugfixes for s390[x] IFUNC support Patch12: binutils-rh805974.patch Patch13: binutils-rh805107.patch +Patch14: binutils-2.23.51.0.1-arm-whitespace.patch %define gold_arches %ix86 x86_64 @@ -151,6 +152,7 @@ using libelf instead of BFD. %patch11 -p0 -b .gold-keep~ %patch12 -p1 %patch13 -p1 +%patch14 -p0 -b .arm-whitespace~ # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -449,6 +451,9 @@ exit 0 %endif # %{isnative} %changelog +* Fri Jan 24 2013 Nick Clifton 2.23.51.0.1-6 +- Allow more whitespace in ARM instructions. (#892261) + * Wed Nov 7 2012 Jeff Law 2.23.51.0.1-5 - Fix segfault with local ifunc symbols on s390[x] (#805107).