diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-07-16 21:15:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-07-16 21:15:40 +0000 |
commit | fe619ced4a86f6a899e40195900775e1d1edbc1c (patch) | |
tree | ae704269c0cc9f80e60ffd1cc549578c00570a9b /ld | |
parent | dd8ca662ce83b4e7b179247363c79b3c795985de (diff) | |
download | gdb-fe619ced4a86f6a899e40195900775e1d1edbc1c.zip gdb-fe619ced4a86f6a899e40195900775e1d1edbc1c.tar.gz gdb-fe619ced4a86f6a899e40195900775e1d1edbc1c.tar.bz2 |
* ldgram.y (OPTION_Lfile): New token.
(command_line_option): Accept OPTION_L NAME (whitespace after -L).
* ldlex.l (<COMMAND>): Accept -L without FILENAME.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/ldgram.y | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index faeb5b7..f072f8e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com) + + * ldgram.y (OPTION_Lfile): New token. + (command_line_option): Accept OPTION_L NAME (whitespace after -L). + * ldlex.l (<COMMAND>): Accept -L without FILENAME. + Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com) * configure.in: h8/300h support needs own .mt file. diff --git a/ld/ldgram.y b/ld/ldgram.y index 5104554..739a2c9 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -143,10 +143,10 @@ static int error_index; %token <integer> SIZEOF NEXT ADDR %token OPTION_d OPTION_dc OPTION_dp OPTION_x OPTION_X OPTION_defsym %token OPTION_v OPTION_V OPTION_m OPTION_memul OPTION_M OPTION_t STARTUP HLL SYSLIB FLOAT NOFLOAT -%token OPTION_Map +%token OPTION_L OPTION_Map %token OPTION_n OPTION_r OPTION_o OPTION_b OPTION_R OPTION_relax OPTION_version -%token <name> OPTION_l OPTION_L OPTION_T OPTION_Aarch OPTION_Tfile OPTION_Texp -%token <name> OPTION_y +%token <name> OPTION_l OPTION_Lfile OPTION_T OPTION_Aarch OPTION_Tfile +%token <name> OPTION_Texp OPTION_y %token OPTION_Ur %token ORIGIN FILL OPTION_g %token LENGTH CREATE_OBJECT_SYMBOLS INPUT OUTPUT CONSTRUCTORS @@ -317,7 +317,11 @@ command_line_option: { lang_add_target($2); } - | OPTION_L + | OPTION_L NAME + { + ldfile_add_library_path($2); + } + | OPTION_Lfile { ldfile_add_library_path($1); } |