2 Copyright 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002
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 */
29 struct lang_output_section_statement_struct
*section
;
51 typedef union etree_union
{
55 union etree_union
*lhs
;
56 union etree_union
*rhs
;
60 union etree_union
*cond
;
61 union etree_union
*lhs
;
62 union etree_union
*rhs
;
67 union etree_union
*src
;
71 union etree_union
*child
;
89 union etree_union
*child
;
94 extern struct exp_data_seg
{
97 exp_dataseg_align_seen
,
101 bfd_vma base
, end
, pagesize
;
104 typedef struct _fill_type fill_type
;
106 etree_type
*exp_intop
108 etree_type
*exp_bigintop
109 PARAMS ((bfd_vma
, char *));
110 etree_type
*exp_relop
111 PARAMS ((asection
*, bfd_vma
));
112 etree_value_type invalid
114 etree_value_type exp_fold_tree
115 PARAMS ((etree_type
*, struct lang_output_section_statement_struct
*,
116 lang_phase_type
, bfd_vma
, bfd_vma
*));
117 etree_type
*exp_binop
118 PARAMS ((int, etree_type
*, etree_type
*));
119 etree_type
*exp_trinop
120 PARAMS ((int,etree_type
*, etree_type
*, etree_type
*));
122 PARAMS ((int, etree_type
*));
123 etree_type
*exp_nameop
124 PARAMS ((int, const char *));
125 etree_type
*exp_assop
126 PARAMS ((int, const char *, etree_type
*));
127 etree_type
*exp_provide
128 PARAMS ((const char *, etree_type
*));
129 etree_type
*exp_assert
130 PARAMS ((etree_type
*, const char *));
132 PARAMS ((etree_type
*));
134 PARAMS ((etree_type
*, bfd_vma
, char *, lang_phase_type
));
135 int exp_get_value_int
136 PARAMS ((etree_type
*, int, char *, lang_phase_type
));
137 fill_type
*exp_get_fill
138 PARAMS ((etree_type
*, fill_type
*, char *, lang_phase_type
));
139 bfd_vma exp_get_abs_int
140 PARAMS ((etree_type
*, int, char *, lang_phase_type
));
142 PARAMS ((bfd_vma
, bfd_vma
));