aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-07 21:15:09 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-07 21:15:09 +0000
commita02945df8113a991443fa98875b2de2a8070006d (patch)
tree976c3ea990ffb927e5967acd8b63582a1ef1a58b /ld/ldlex.l
parent23a8e2915cfa83f8cac60e61e1b414a7aeab198e (diff)
downloadgdb-a02945df8113a991443fa98875b2de2a8070006d.zip
gdb-a02945df8113a991443fa98875b2de2a8070006d.tar.gz
gdb-a02945df8113a991443fa98875b2de2a8070006d.tar.bz2
Don't define bfd_vma here!
(Wasted at least a day tracking this damn thing down...)
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l11
1 files changed, 7 insertions, 4 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 606f65a..74ecf34 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -24,8 +24,8 @@ This was written by steve chamberlain
*/
-typedef int bfd_vma;
#include <ansidecl.h>
+#include "bfd.h"
#include "ldgram.h"
int ldgram_in_defsym;
@@ -98,12 +98,15 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
<DEFSYMEXP>{FILENAMECHAR1}{SYMBOLCHARN}* { yylval.name = buystring(yytext); return NAME; }
<DEFSYMEXP>[ \t] { RTOKEN(DEFSYMEND); }
<DEFSYMEXP>"=" { RTOKEN('='); }
+<COMMAND>"--help" { return OPTION_help; }
+<COMMAND>"--version" { return OPTION_version; }
<COMMAND>"-defsym"{WHITE}* { return OPTION_defsym; }
-<COMMAND>"-noinhibit_exec" { return OPTION_noinhibit_exec; }
+<COMMAND>"-format" { return OPTION_format; }
<COMMAND>"-noinhibit-exec" { return OPTION_noinhibit_exec; }
-<COMMAND>"-sort_common" { return OPTION_sort_common;}
+<COMMAND>"-noinhibit_exec" { return OPTION_noinhibit_exec; }
+<COMMAND>"-oformat" { return OPTION_oformat; }
<COMMAND>"-sort-common" { return OPTION_sort_common;}
-<COMMAND>"-format" { return OPTION_format; }
+<COMMAND>"-sort_common" { return OPTION_sort_common;}
<COMMAND>"-n" { return OPTION_n; }
<COMMAND>"-N" { return OPTION_N; }
<COMMAND>"-r" { return OPTION_r; }