From 67469e1ff309c1997e73e1ffc261a68fd2b29106 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 19 Feb 2007 23:51:58 +0000 Subject: [PATCH] * ldexp.c (fold_name ): Ensure result is always absolute. --- ld/ChangeLog | 4 ++++ ld/ldexp.c | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 1e8dc5f2fc9..cbe05449797 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2007-02-20 Alan Modra + + * ldexp.c (fold_name ): Ensure result is always absolute. + 2007-02-17 Mark Mitchell Nathan Sidwell Vladimir Prus . @@ -485,6 +485,7 @@ fold_name (etree_type *tree) new_abs (hdr_size); } break; + case DEFINED: if (expld.phase == lang_first_phase_enum) lang_track_definedness (tree->name.name); @@ -507,6 +508,7 @@ fold_name (etree_type *tree) expld.result.valid_p = TRUE; } break; + case NAME: if (expld.phase == lang_first_phase_enum) ; @@ -591,7 +593,10 @@ fold_name (etree_type *tree) if (os->load_base == NULL) new_abs (os->bfd_section->lma); else - exp_fold_tree_1 (os->load_base); + { + exp_fold_tree_1 (os->load_base); + make_abs (); + } } } break; -- 2.30.2