aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-01-21 12:04:25 +0000
committerJakub Jelinek <jakub@redhat.com>2005-01-21 12:04:25 +0000
commitb717d30eb550a5418757c32f232a01e7620f640d (patch)
treefa15733535e0ec54103ecceed09a391130d34616 /ld/ldlex.l
parent666ec76f414cd10124107b16e44a5a3f4f63d69c (diff)
downloadgdb-b717d30eb550a5418757c32f232a01e7620f640d.zip
gdb-b717d30eb550a5418757c32f232a01e7620f640d.tar.gz
gdb-b717d30eb550a5418757c32f232a01e7620f640d.tar.bz2
* ldgram.y (AS_NEEDED): New token.
(input_list): Handle AS_NEEDED ( input_list ). * ldlex.l (AS_NEEDED): Add. * ld.texinfo: Document AS_NEEDED (). * NEWS: Mention AS_NEEDED ().
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index d49c085..70059e1 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -1,7 +1,7 @@
%{
/* Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -269,6 +269,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)*
<BOTH,SCRIPT>"OUTPUT" { RTOKEN(OUTPUT);}
<BOTH,SCRIPT>"INPUT" { RTOKEN(INPUT);}
<EXPRESSION,BOTH,SCRIPT>"GROUP" { RTOKEN(GROUP);}
+<EXPRESSION,BOTH,SCRIPT>"AS_NEEDED" { RTOKEN(AS_NEEDED);}
<EXPRESSION,BOTH,SCRIPT>"DEFINED" { RTOKEN(DEFINED);}
<BOTH,SCRIPT>"CREATE_OBJECT_SYMBOLS" { RTOKEN(CREATE_OBJECT_SYMBOLS);}
<BOTH,SCRIPT>"CONSTRUCTORS" { RTOKEN( CONSTRUCTORS);}