diff options
author | Nick Clifton <nickc@redhat.com> | 2009-03-02 17:27:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-03-02 17:27:36 +0000 |
commit | 4a93e18003bc8a90c03a26a27c368fbc5a4e0e84 (patch) | |
tree | 1ade88f5dc05ea6287a283b4e323fc773922b789 /ld/ldgram.y | |
parent | 220df88bffbd9b2acf1d86a744ffae70c9fff248 (diff) | |
download | gdb-4a93e18003bc8a90c03a26a27c368fbc5a4e0e84.zip gdb-4a93e18003bc8a90c03a26a27c368fbc5a4e0e84.tar.gz gdb-4a93e18003bc8a90c03a26a27c368fbc5a4e0e84.tar.bz2 |
* ldgram.y: Add support for REGION_ALIAS operator.
* ldlang.c: Likewise.
* ldlang.h: Likewise.
* ldlex.l: Likewise.
* NEWS: Mention the new feature.
* ld.texinfo: Document the new feature.
* ld-scripts/regions-alias-1.t: New file.
* ld-scripts/regions-alias-2.t: New file.
* ld-scripts/regions-alias-3.t: New file.
* ld-scripts/regions-alias-4.t: New file.
* ld-scripts/script.exp: Run region alias tests.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 1149e6b..4d06725 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -1,6 +1,6 @@ /* A YACC grammar to parse a superset of the AT&T linker scripting language. Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com). This file is part of the GNU Binutils. @@ -131,6 +131,7 @@ static int error_index; %token SEGMENT_START %token INCLUDE %token MEMORY +%token REGION_ALIAS %token NOLOAD DSECT COPY INFO OVERLAY %token DEFINED TARGET_K SEARCH_DIR MAP ENTRY %token <integer> NEXT @@ -352,6 +353,8 @@ ifile_p1: { lang_add_insert ($3, 0); } | INSERT_K BEFORE NAME { lang_add_insert ($3, 1); } + | REGION_ALIAS '(' NAME ',' NAME ')' + { lang_memory_region_alias ($3, $5); } ; input_list: |