diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-08-02 19:01:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-08-02 19:01:58 +0000 |
commit | 5735ac9e57fe37d7984e6f71d551f9b0ebd87721 (patch) | |
tree | 4971d92383158bd9e10a126d93be8b9406c40fe6 /ld/ldgram.y | |
parent | 10a14e3639d6b655afd296809ec4102e1ba26b7f (diff) | |
download | gdb-5735ac9e57fe37d7984e6f71d551f9b0ebd87721.zip gdb-5735ac9e57fe37d7984e6f71d551f9b0ebd87721.tar.gz gdb-5735ac9e57fe37d7984e6f71d551f9b0ebd87721.tar.bz2 |
* ldgram.y (LOADADDR): New terminal.
(exp): Handle LOADADDR.
* ldlex.l: Recognize LOADADDR.
* ldexp.c (exp_print_token): Add LOADADDR.
(fold_name): Implement LOADADDR.
* ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
* ld.texinfo (Arithmetic Functions): Document LOADADDR.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 1f16baa..d9a6bff 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -113,7 +113,7 @@ static int error_index; %token MEMORY DEFSYMEND %token NOLOAD DSECT COPY INFO OVERLAY %token NAME LNAME DEFINED TARGET_K SEARCH_DIR MAP ENTRY -%token <integer> SIZEOF NEXT ADDR +%token <integer> SIZEOF NEXT ADDR LOADADDR %token STARTUP HLL SYSLIB FLOAT NOFLOAT NOCROSSREFS %token ORIGIN FILL %token LENGTH CREATE_OBJECT_SYMBOLS INPUT GROUP OUTPUT CONSTRUCTORS @@ -668,6 +668,8 @@ exp : { $$ = exp_nameop(SIZEOF,$3); } | ADDR '(' NAME ')' { $$ = exp_nameop(ADDR,$3); } + | LOADADDR '(' NAME ')' + { $$ = exp_nameop(LOADADDR,$3); } | ABSOLUTE '(' exp ')' { $$ = exp_unop(ABSOLUTE, $3); } | ALIGN_K '(' exp ')' |