~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to ld/ldgram.y

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
328
328
        |       OUTPUT_FORMAT '(' NAME ',' NAME ',' NAME ')'
329
329
                  { lang_add_output_format ($3, $5, $7, 1); }
330
330
        |       OUTPUT_ARCH '(' NAME ')'
331
 
                  { ldfile_set_output_arch($3); }
 
331
                  { ldfile_set_output_arch ($3, bfd_arch_unknown); }
332
332
        |       FORCE_COMMON_ALLOCATION
333
333
                { command_line.force_common_definition = TRUE ; }
334
334
        |       INHIBIT_COMMON_ALLOCATION
386
386
                ENTRY '(' NAME ')'
387
387
                { lang_add_entry ($3, FALSE); }
388
388
        |       assignment end
 
389
        |       ASSERT_K  {ldlex_expression ();} '(' exp ',' NAME ')'
 
390
                { ldlex_popstate ();
 
391
                  lang_add_assignment (exp_assert ($4, $6)); }
389
392
        ;
390
393
 
391
394
/* The '*' and '?' cases are there because the lexer returns them as
801
804
                        { $$ = exp_unop(ABSOLUTE, $3); }
802
805
        |       ALIGN_K '(' exp ')'
803
806
                        { $$ = exp_unop(ALIGN_K,$3); }
 
807
        |       ALIGN_K '(' exp ',' exp ')'
 
808
                        { $$ = exp_binop(ALIGN_K,$3,$5); }
804
809
        |       DATA_SEGMENT_ALIGN '(' exp ',' exp ')'
805
810
                        { $$ = exp_binop (DATA_SEGMENT_ALIGN, $3, $5); }
806
811
        |       DATA_SEGMENT_END '(' exp ')'
841
846
                        {
842
847
                          lang_enter_output_section_statement($1, $3,
843
848
                                                              sectype,
844
 
                                                              0, 0, $5, $4);
 
849
                                                              0, $5, $4);
845
850
                        }
846
851
                statement_list_opt
847
852
                '}' { ldlex_popstate (); ldlex_expression (); }