Allow ^ and ! characters in linker script wildcard patterns. (BZ 621742)

This commit is contained in:
Nick Clifton 2010-08-20 16:07:03 +01:00
parent fa26cbc678
commit fb76e793be
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,19 @@
*** ../binutils-2.20.51.0.10.orig/ld/ldlex.l 2010-08-20 15:28:06.000000000 +0100
--- ld/ldlex.l 2010-08-20 15:35:27.000000000 +0100
*************** CMDFILENAMECHAR1 [_a-zA-Z0-9\/\.\\_\+\$
*** 99,105 ****
FILENAMECHAR1 [_a-zA-Z\/\.\\\$\_\~]
SYMBOLCHARN [_a-zA-Z\/\.\\\$\_\~0-9]
FILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\=\$\:\[\]\\\,\~]
! WILDCHAR [_a-zA-Z0-9\/\.\-\_\+\=\$\:\[\]\\\,\~\?\*]
WHITE [ \t\n\r]+
NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
--- 99,105 ----
FILENAMECHAR1 [_a-zA-Z\/\.\\\$\_\~]
SYMBOLCHARN [_a-zA-Z\/\.\\\$\_\~0-9]
FILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\=\$\:\[\]\\\,\~]
! WILDCHAR [_a-zA-Z0-9\/\.\-\_\+\=\$\:\[\]\\\,\~\?\*\^\!]
WHITE [ \t\n\r]+
NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]

View File

@ -17,7 +17,7 @@
Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.20.51.0.10
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv3+
Group: Development/Tools
URL: http://sources.redhat.com/binutils
@ -33,6 +33,7 @@ Patch07: binutils-2.20.51.0.2-build-id.patch
Patch08: binutils-2.20.51.0.10-copy-osabi.patch
Patch09: binutils-2.20.51.0.10-update-gold.patch
Patch10: binutils-2.20.51.0.10-sec-merge-emit.patch
Patch11: binutils-2.20.51.0.10-ldlex-add-caret-pling.patch
%define gold_arches %ix86 x86_64
@ -133,6 +134,7 @@ using libelf instead of BFD.
%patch08 -p0 -b .copy-osabi~
%patch09 -p0 -b .update-gold~
%patch10 -p0 -b .sec-merge-emit~
%patch11 -p0 -b .ldlex~
# We cannot run autotools as there is an exact requirement of autoconf-2.59.
@ -415,6 +417,9 @@ exit 0
%endif # %{isnative}
%changelog
* Fri Aug 20 2010 Nick Clifton <nickc@redhat.com> - 2.20.51.0.10-3
- Allow ^ and ! characters in linker script wildcard patterns. (BZ 621742)
* Fri Aug 20 2010 Nick Clifton <nickc@redhat.com> - 2.20.51.0.10-2
- Fix seg fault in sec_merge_emit(). (BZ 623687)