Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/ld/ldexp.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* ldexp.h -
    2    Copyright 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001
     2   Copyright 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002
    33   Free Software Foundation, Inc.
    44
     
    2626typedef struct {
    2727  bfd_vma value;
     28  char *str;
    2829  struct lang_output_section_statement_struct *section;
    29   boolean valid_p;
     30  bfd_boolean valid_p;
    3031} etree_value_type;
    3132
    3233typedef struct {
    3334  int node_code;
    34   enum { etree_binary,
    35            etree_trinary,
    36            etree_unary,
    37            etree_name,
    38            etree_assign,
    39            etree_provide,
    40            etree_provided,
    41            etree_undef,
    42            etree_unspec,
    43            etree_value,
    44            etree_assert,
    45            etree_rel } node_class;
     35  enum {
     36    etree_binary,
     37    etree_trinary,
     38    etree_unary,
     39    etree_name,
     40    etree_assign,
     41    etree_provide,
     42    etree_provided,
     43    etree_undef,
     44    etree_unspec,
     45    etree_value,
     46    etree_assert,
     47    etree_rel
     48  } node_class;
    4649} node_type;
    4750
     
    6164  struct {
    6265    node_type type;
    63     CONST char *dst;
     66    const char *dst;
    6467    union etree_union *src;
    6568  } assign;
    66 
    6769  struct {
    6870    node_type type;
     
    7173  struct {
    7274    node_type type;
    73     CONST char *name;
     75    const char *name;
    7476  } name;
    7577  struct {
    7678    node_type type;
    7779    bfd_vma value;
     80    char *str;
    7881  } value;
    7982  struct {
     
    8992} etree_type;
    9093
    91 etree_type *exp_intop PARAMS ((bfd_vma));
    92 etree_type *exp_relop PARAMS ((asection *, bfd_vma));
    93 etree_value_type invalid PARAMS ((void));
    94 etree_value_type exp_fold_tree PARAMS ((etree_type *, struct
    95                                         lang_output_section_statement_struct *,
    96                                         lang_phase_type,
    97                                         bfd_vma, bfd_vma *));
    98 etree_type *exp_binop PARAMS ((int, etree_type *, etree_type *));
    99 etree_type *exp_trinop PARAMS ((int,etree_type *, etree_type *, etree_type *));
    100 etree_type *exp_unop PARAMS ((int, etree_type *));
    101 etree_type *exp_nameop PARAMS ((int, CONST char *));
    102 etree_type *exp_assop PARAMS ((int, CONST char *, etree_type *));
    103 etree_type *exp_provide PARAMS ((const char *, etree_type *));
    104 etree_type *exp_assert PARAMS ((etree_type *, const char *));
    105 void exp_print_tree PARAMS ((etree_type *));
    106 bfd_vma exp_get_vma PARAMS ((etree_type *, bfd_vma, char *, lang_phase_type));
    107 int exp_get_value_int PARAMS ((etree_type *, int, char *, lang_phase_type));
    108 bfd_vma exp_get_abs_int PARAMS ((etree_type *, int, char *, lang_phase_type));
     94extern struct exp_data_seg {
     95  enum {
     96    exp_dataseg_none,
     97    exp_dataseg_align_seen,
     98    exp_dataseg_end_seen,
     99    exp_dataseg_adjust
     100  } phase;
     101  bfd_vma base, end, pagesize;
     102} exp_data_seg;
     103
     104typedef struct _fill_type fill_type;
     105
     106etree_type *exp_intop
     107  PARAMS ((bfd_vma));
     108etree_type *exp_bigintop
     109  PARAMS ((bfd_vma, char *));
     110etree_type *exp_relop
     111  PARAMS ((asection *, bfd_vma));
     112etree_value_type invalid
     113  PARAMS ((void));
     114etree_value_type exp_fold_tree
     115  PARAMS ((etree_type *, struct lang_output_section_statement_struct *,
     116           lang_phase_type, bfd_vma, bfd_vma *));
     117etree_type *exp_binop
     118  PARAMS ((int, etree_type *, etree_type *));
     119etree_type *exp_trinop
     120  PARAMS ((int,etree_type *, etree_type *, etree_type *));
     121etree_type *exp_unop
     122  PARAMS ((int, etree_type *));
     123etree_type *exp_nameop
     124  PARAMS ((int, const char *));
     125etree_type *exp_assop
     126  PARAMS ((int, const char *, etree_type *));
     127etree_type *exp_provide
     128  PARAMS ((const char *, etree_type *));
     129etree_type *exp_assert
     130  PARAMS ((etree_type *, const char *));
     131void exp_print_tree
     132  PARAMS ((etree_type *));
     133bfd_vma exp_get_vma
     134  PARAMS ((etree_type *, bfd_vma, char *, lang_phase_type));
     135int exp_get_value_int
     136  PARAMS ((etree_type *, int, char *, lang_phase_type));
     137fill_type *exp_get_fill
     138  PARAMS ((etree_type *, fill_type *, char *, lang_phase_type));
     139bfd_vma exp_get_abs_int
     140  PARAMS ((etree_type *, int, char *, lang_phase_type));
     141bfd_vma align_n
     142  PARAMS ((bfd_vma, bfd_vma));
    109143
    110144#endif
Note: See TracChangeset for help on using the changeset viewer.