aboutsummaryrefslogtreecommitdiff
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
commitf37a7048a8608dcc4465a4b425cc4fd3b0f9e1cd (patch)
treebb4270f85ebc2ceb174a8325d81921c0b0bc5058 /ld/ldlang.c
parent27d0bed645075a5aad861d6a9f62a373d45ac176 (diff)
downloadgdb-f37a7048a8608dcc4465a4b425cc4fd3b0f9e1cd.zip
gdb-f37a7048a8608dcc4465a4b425cc4fd3b0f9e1cd.tar.gz
gdb-f37a7048a8608dcc4465a4b425cc4fd3b0f9e1cd.tar.bz2
* 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 b9f6dd8..5ccb36f 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);
}