2 Copyright 1991, 92, 93, 94, 95, 98, 2000
3 Free Software Foundation, Inc.
5 This file is part of GLD, the Gnu Linker.
7 GLD is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GLD is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GLD; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 /* The result of an expression tree */
28 struct lang_output_section_statement_struct *section;
44 etree_rel } node_class;
47 typedef union etree_union {
51 union etree_union *lhs;
52 union etree_union *rhs;
56 union etree_union *cond;
57 union etree_union *lhs;
58 union etree_union *rhs;
63 union etree_union *src;
68 union etree_union *child;
85 union etree_union *child;
90 etree_type *exp_intop PARAMS ((bfd_vma));
91 etree_type *exp_relop PARAMS ((asection *, bfd_vma));
92 etree_value_type invalid PARAMS ((void));
93 etree_value_type exp_fold_tree PARAMS ((etree_type *, struct
94 lang_output_section_statement_struct *,
97 etree_type *exp_binop PARAMS ((int, etree_type *, etree_type *));
98 etree_type *exp_trinop PARAMS ((int,etree_type *, etree_type *, etree_type *));
99 etree_type *exp_unop PARAMS ((int, etree_type *));
100 etree_type *exp_nameop PARAMS ((int, CONST char *));
101 etree_type *exp_assop PARAMS ((int, CONST char *, etree_type *));
102 etree_type *exp_provide PARAMS ((const char *, etree_type *));
103 etree_type *exp_assert PARAMS ((etree_type *, const char *));
104 void exp_print_tree PARAMS ((etree_type *));
105 bfd_vma exp_get_vma PARAMS ((etree_type *, bfd_vma, char *, lang_phase_type));
106 int exp_get_value_int PARAMS ((etree_type *, int, char *, lang_phase_type));
107 bfd_vma exp_get_abs_int PARAMS ((etree_type *, int, char *, lang_phase_type));