aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-01-06 19:38:36 +0000
committerIan Lance Taylor <ian@airs.com>1994-01-06 19:38:36 +0000
commitc477527cbba110e90f3ef2ff059d26b97ec3ed2f (patch)
tree4e2781924b058ef41d82e2fba2e3c642dc229864 /ld/ldlex.l
parent45dc9be38877cbb8218182b5c5ebd6e82e5ccd47 (diff)
downloadgdb-c477527cbba110e90f3ef2ff059d26b97ec3ed2f.zip
gdb-c477527cbba110e90f3ef2ff059d26b97ec3ed2f.tar.gz
gdb-c477527cbba110e90f3ef2ff059d26b97ec3ed2f.tar.bz2
* ld.h (QUAD_SIZE): Define.
* ldgram.y (QUAD): New token. (length): Handle it. * ldlex.l: Return QUAD. * lexsup.c (keywords): Add QUAD. * ldwrite.c (build_link_order): Handle QUAD. * ldlang.c (print_data_statement): Handle QUAD. (lang_size_sections): Likewise. (lang_do_assignments): Likewise. * ldexp.c (exp_print_token): Add QUAD to table. * ld.texinfo: Describe QUAD.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 82ba046..cdc4249 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -1,6 +1,6 @@
%{
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -27,6 +27,7 @@ This was written by steve chamberlain
#include <ansidecl.h>
#include <stdio.h>
#include "bfd.h"
+#include "sysdep.h"
#include "ld.h"
#include "ldgram.h"
#include "ldmisc.h"
@@ -112,6 +113,8 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
<COMMAND>"-n" { return OPTION_n; }
<COMMAND>"-N" { return OPTION_N; }
<COMMAND>"-r" { return OPTION_r; }
+<COMMAND>"-stats" { return OPTION_stats; }
+<COMMAND>"-no-keep-memory" { return OPTION_no_keep_memory; }
<COMMAND>"-relax" { return OPTION_relax; }
<COMMAND>"-i" { return OPTION_r; }
<COMMAND>"-Ur" { return OPTION_Ur; }
@@ -329,6 +332,7 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
<BOTH,SCRIPT>"HLL" { RTOKEN(HLL);}
<BOTH,SCRIPT>"SYSLIB" { RTOKEN(SYSLIB);}
<BOTH,SCRIPT>"FLOAT" { RTOKEN(FLOAT);}
+<BOTH,SCRIPT>"QUAD" { RTOKEN( QUAD);}
<BOTH,SCRIPT>"LONG" { RTOKEN( LONG);}
<BOTH,SCRIPT>"SHORT" { RTOKEN( SHORT);}
<BOTH,SCRIPT>"BYTE" { RTOKEN( BYTE);}