From 408082ec1818d43e3552882cea5aa6b09fdc2688 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 2 Jun 2005 03:08:41 +0000 Subject: * 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. --- ld/ldexp.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ld/ldexp.h') 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 -- cgit v1.1