diff options
author | Steve Chamberlain <steve@cygnus> | 1991-04-17 00:49:44 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-04-17 00:49:44 +0000 |
commit | 13a0e8d7fc474b3ebf11161dcfbd8c7b55878e89 (patch) | |
tree | dcb6ab29289bcd8a5f7bdfb3d5e0016100b93a6b /ld/ldgram.y | |
parent | fd846434f0502cee46643a03225e9543111efff9 (diff) | |
download | gdb-13a0e8d7fc474b3ebf11161dcfbd8c7b55878e89.zip gdb-13a0e8d7fc474b3ebf11161dcfbd8c7b55878e89.tar.gz gdb-13a0e8d7fc474b3ebf11161dcfbd8c7b55878e89.tar.bz2 |
Added support for OUTPUT_FORMAT(name) and FORCE_COMMON_ALLOCATION
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 741a02f..dcc87cd 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -111,7 +111,7 @@ boolean ldgram_in_defsym = false; %token <token> ALIGN_K BLOCK LONG SHORT BYTE %token SECTIONS %token '{' '}' -%token ALIGNMENT SIZEOF_HEADERS +%token ALIGNMENT SIZEOF_HEADERS OUTPUT_FORMAT FORCE_COMMON_ALLOCATION %token NEXT SIZEOF ADDR SCRIPT ENDSCRIPT %token MEMORY %token DSECT NOLOAD COPY INFO OVERLAY @@ -305,7 +305,7 @@ script_file: ifile_list: ifile_list ifile_p1 - | + | ; @@ -324,6 +324,10 @@ ifile_p1: { ldfile_add_library_path($3); } | OUTPUT '(' filename ')' { lang_add_output($3); } + | OUTPUT_FORMAT '(' NAME ')' + { lang_add_output_format($3); } + | FORCE_COMMON_ALLOCATION + { command_line.force_common_definition = true ; } | INPUT '(' input_list ')' | MAP '(' filename ')' { lang_add_map($3); } @@ -390,7 +394,9 @@ input_section_spec: statement: statement assignment end | statement CREATE_OBJECT_SYMBOLS - { lang_add_attribute(lang_object_symbols_statement_enum); } + { + lang_add_attribute(lang_object_symbols_statement_enum); } + | statement input_section_spec | statement length '(' exp_head ')' { |