diff options
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 19b986a..ee85422 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -3219,7 +3219,10 @@ print_assignment (lang_assignment_statement_type *assignment, if (computation_is_valid) { - value = result.value + result.section->bfd_section->vma; + value = result.value; + + if (result.section) + value += result.section->bfd_section->vma; minfo ("0x%V", value); if (is_dot) @@ -3233,7 +3236,10 @@ print_assignment (lang_assignment_statement_type *assignment, FALSE, FALSE, TRUE); if (h) { - value = h->u.def.value + result.section->bfd_section->vma; + value = h->u.def.value; + + if (result.section) + value += result.section->bfd_section->vma; minfo ("[0x%V]", value); } |