aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-02 19:01:58 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-02 19:01:58 +0000
commit5735ac9e57fe37d7984e6f71d551f9b0ebd87721 (patch)
tree4971d92383158bd9e10a126d93be8b9406c40fe6 /ld/ldlex.l
parent10a14e3639d6b655afd296809ec4102e1ba26b7f (diff)
downloadgdb-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/ldlex.l')
-rw-r--r--ld/ldlex.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 796ff9d..681988d 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -228,6 +228,7 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
<BOTH,SCRIPT>"LENGTH" { RTOKEN(LENGTH);}
<EXPRESSION,BOTH,SCRIPT>"ALIGN" { RTOKEN(ALIGN_K);}
<EXPRESSION,BOTH,SCRIPT>"ADDR" { RTOKEN(ADDR);}
+<EXPRESSION,BOTH,SCRIPT>"LOADADDR" { RTOKEN(LOADADDR);}
<BOTH,SCRIPT>"ENTRY" { RTOKEN(ENTRY);}
<EXPRESSION,BOTH,SCRIPT>"NEXT" { RTOKEN(NEXT);}
<EXPRESSION,BOTH,SCRIPT>"sizeof_headers" { RTOKEN(SIZEOF_HEADERS);}