summaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2011-05-16 11:34:48 +0000
committerNathan Sidwell <nathan@codesourcery.com>2011-05-16 11:34:48 +0000
commitf32deb62a0953e3125a167efd6dad732cc7d809d (patch)
treec36c7f5a96a99eab54a1c6bd85c7de6fbba2df0b /ld/ldlang.c
parent33ad892ae812ee98def3828e41aff12a8ab9726d (diff)
downloadbinutils-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.c5
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);
}