diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2011-05-16 11:34:48 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2011-05-16 11:34:48 +0000 |
commit | f32deb62a0953e3125a167efd6dad732cc7d809d (patch) | |
tree | c36c7f5a96a99eab54a1c6bd85c7de6fbba2df0b /ld/ldlang.c | |
parent | 33ad892ae812ee98def3828e41aff12a8ab9726d (diff) | |
download | binutils-redhat-f32deb62a0953e3125a167efd6dad732cc7d809d.tar.gz |
* ldlang.c (print_assignment): Use the symbol's section if we
use its value.
* ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
comment on copying symbol type.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index b9f6dd87c3..5ccb36f514 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4048,9 +4048,8 @@ print_assignment (lang_assignment_statement_type *assignment, if (h) { value = h->u.def.value; - - if (expld.result.section != NULL) - value += expld.result.section->vma; + value += h->u.def.section->output_section->vma; + value += h->u.def.section->output_offset; minfo ("[0x%V]", value); } |