aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-06-02 03:08:41 +0000
committerAlan Modra <amodra@gmail.com>2005-06-02 03:08:41 +0000
commit408082ec1818d43e3552882cea5aa6b09fdc2688 (patch)
tree1ebefdc42f36dbf80ed2b33e57f69aba1e270f63 /ld/ldexp.h
parentc2bd6e35d3a96182135ecb12cc64161b31fcfae6 (diff)
downloadgdb-408082ec1818d43e3552882cea5aa6b09fdc2688.zip
gdb-408082ec1818d43e3552882cea5aa6b09fdc2688.tar.gz
gdb-408082ec1818d43e3552882cea5aa6b09fdc2688.tar.bz2
* ldexp.h (etree_value_type): Use "asection *" in place of
"struct lang_output_section_statement_struct *" for "section". (exp_fold_tree): Likewise. (exp_mark_used_section): Likewise. * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary, fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree, exp_mark_used_section): Likewise for "current_section" param. (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill, exp_get_abs_int): Adjust for above changes. * ldlang.c (lang_mark_used_section_1, print_assignment, lang_size_sections_1, lang_do_assignments_1): Likewise. * ldexp.c (fold_name): Init entire result struct.
Diffstat (limited to 'ld/ldexp.h')
-rw-r--r--ld/ldexp.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ld/ldexp.h b/ld/ldexp.h
index 5a48f1d..ae6b874 100644
--- a/ld/ldexp.h
+++ b/ld/ldexp.h
@@ -1,6 +1,6 @@
/* ldexp.h -
Copyright 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004 Free Software Foundation, Inc.
+ 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -26,7 +26,7 @@
typedef struct {
bfd_vma value;
char *str;
- struct lang_output_section_statement_struct *section;
+ asection *section;
bfd_boolean valid_p;
} etree_value_type;
@@ -130,8 +130,7 @@ etree_type *exp_relop
etree_value_type invalid
(void);
etree_value_type exp_fold_tree
- (etree_type *, struct lang_output_section_statement_struct *,
- lang_phase_type, bfd_vma, bfd_vma *);
+ (etree_type *, asection *, lang_phase_type, bfd_vma, bfd_vma *);
etree_type *exp_binop
(int, etree_type *, etree_type *);
etree_type *exp_trinop
@@ -157,6 +156,6 @@ fill_type *exp_get_fill
bfd_vma exp_get_abs_int
(etree_type *, int, char *, lang_phase_type);
void exp_mark_used_section
- (etree_type *, struct lang_output_section_statement_struct *);
+ (etree_type *, asection *);
#endif