From a02945df8113a991443fa98875b2de2a8070006d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 7 Jul 1993 21:15:09 +0000 Subject: Don't define bfd_vma here! (Wasted at least a day tracking this damn thing down...) --- ld/ldlex.l | 11 +++++++---- 1 file 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 +#include "bfd.h" #include "ldgram.h" int ldgram_in_defsym; @@ -98,12 +98,15 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~] {FILENAMECHAR1}{SYMBOLCHARN}* { yylval.name = buystring(yytext); return NAME; } [ \t] { RTOKEN(DEFSYMEND); } "=" { RTOKEN('='); } +"--help" { return OPTION_help; } +"--version" { return OPTION_version; } "-defsym"{WHITE}* { return OPTION_defsym; } -"-noinhibit_exec" { return OPTION_noinhibit_exec; } +"-format" { return OPTION_format; } "-noinhibit-exec" { return OPTION_noinhibit_exec; } -"-sort_common" { return OPTION_sort_common;} +"-noinhibit_exec" { return OPTION_noinhibit_exec; } +"-oformat" { return OPTION_oformat; } "-sort-common" { return OPTION_sort_common;} -"-format" { return OPTION_format; } +"-sort_common" { return OPTION_sort_common;} "-n" { return OPTION_n; } "-N" { return OPTION_N; } "-r" { return OPTION_r; } -- cgit v1.1