[PATCH, COMMIT]: Allow ^ and ! inside linker scripts regexps
H.J. Lu
hjl.tools@gmail.com
Tue Aug 31 16:27:00 GMT 2010
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.
More information about the Binutils
mailing list