This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, COMMIT]: Allow ^ and ! inside linker scripts regexps
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 31 Aug 2010 09:09:47 -0700
- Subject: Re: [PATCH, COMMIT]: Allow ^ and ! inside linker scripts regexps
- References: <m3hbia22ay.fsf@redhat.com>
On Tue, Aug 31, 2010 at 9:07 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Guys,
>
> ?I am applying the patch below to allow the caret (^) and exclamation
> ?point (!) characters to be used inside linker script regular
> ?expressions. ?The code in fnmatch() (in libiberty) supports them, but
> ?the linker's parser was not accepting them. ?Thus expressions like:
>
> ? ?.text: { *(.text.[^.]* )
>
> ?would not work.
>
> ld/ChangeLog
> 2010-08-31 ?Nick Clifton ?<nickc@redhat.com>
>
> ? ? ? ?* ldlex.l (WILDCHAR): Add the caret and exclamation point
> ? ? ? ?characters, so that they can be used inside regexps.
>
Could you please add some testcases to show how they should work?
Thanks.
--
H.J.