From f32deb62a0953e3125a167efd6dad732cc7d809d Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 16 May 2011 11:34:48 +0000 Subject: * 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. --- ld/ldlang.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ld/ldlang.c') 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); } -- cgit v1.2.1