This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, COMMIT]: Allow ^ and ! inside linker scripts regexps


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]