diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-01-26 04:17:05 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-01-26 04:17:05 +0000 |
commit | b5b2c886499ed688cf7a87faad7088ade34958ef (patch) | |
tree | f15be6b0e732777816a7e085db07bcafb9435c44 /ld/ldlex.l | |
parent | 42d11afacc93ca7b5c7078c6e896fb03c35b30c1 (diff) | |
download | gdb-b5b2c886499ed688cf7a87faad7088ade34958ef.zip gdb-b5b2c886499ed688cf7a87faad7088ade34958ef.tar.gz gdb-b5b2c886499ed688cf7a87faad7088ade34958ef.tar.bz2 |
Tue Jan 25 19:54:19 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-config.in: New file, MPW configuration fragment.
* mpw-build.in: New file, MPW build script fragment.
* mpw-make.in: New file, MPW makefile fragment.
(This file is semi-automatically generated from Makefile.in.)
* ldfile.c (slash): If MPW, set to `:'.
* ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
prevent redefinition errors.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -26,6 +26,12 @@ This was written by steve chamberlain #include <ansidecl.h> #include <stdio.h> +/* start-sanitize-mpw */ +#ifdef MPW +/* Prevent enum redefinition problems. */ +#define TRUE_FALSE_ALREADY_DEFINED +#endif /* MPW */ +/* end-sanitize-mpw */ #include "bfd.h" #include "sysdep.h" #include "ld.h" @@ -121,6 +127,10 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~] <COMMAND>"-o" { return OPTION_o; } <COMMAND>"-g" { return OPTION_g; } <COMMAND>"-e" { return OPTION_e; } +<COMMAND>"-e"{FILENAME} { + yylval.name = buystring(yytext+2); + return OPTION_esymbol; + } <COMMAND>"-b" { return OPTION_b; } <COMMAND>"-dc" { return OPTION_dc; } <COMMAND>"-dp" { return OPTION_dp; } @@ -137,6 +147,10 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~] <COMMAND>"-c" { return OPTION_c; } <COMMAND>"-R" { return OPTION_R; } <COMMAND>"-u" { return OPTION_u; } +<COMMAND>"-u"{FILENAME} { + yylval.name = buystring(yytext+2); + return OPTION_usymbol; + } <COMMAND>"-s" { return OPTION_s; } <COMMAND>"-S" { return OPTION_S; } <COMMAND>"-Bstat" { return OPTION_Bstatic; } @@ -187,9 +201,13 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~] return OPTION_F; } +<COMMAND>"-y" { + return OPTION_y; + } + <COMMAND>"-y"{FILENAME} { yylval.name = buystring(yytext+2); - return OPTION_y; + return OPTION_ysymbol; } <COMMAND>"-A"{FILENAME} { |