diff options
author | Alan Modra <amodra@gmail.com> | 2007-02-19 23:51:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-02-19 23:51:58 +0000 |
commit | 67469e1ff309c1997e73e1ffc261a68fd2b29106 (patch) | |
tree | c31f4d8700e4f374d9436a1d9314dd2d38e3a375 /ld | |
parent | 0d0fb2a07a3b8712e12cb218104c1a59ba65c6e6 (diff) | |
download | fsf-binutils-gdb-67469e1ff309c1997e73e1ffc261a68fd2b29106.zip fsf-binutils-gdb-67469e1ff309c1997e73e1ffc261a68fd2b29106.tar.gz fsf-binutils-gdb-67469e1ff309c1997e73e1ffc261a68fd2b29106.tar.bz2 |
* ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldexp.c | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1e8dc5f..cbe0544 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2007-02-20 Alan Modra <amodra@bigpond.net.au> + + * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute. + 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com @@ -1,6 +1,6 @@ /* This module handles expression trees. Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005, 2006 + 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>. @@ -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; |