diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2002-04-30 09:21:27 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2002-04-30 09:21:27 +0000 |
commit | 7b17f854f7e3bfbd1be0bd3e4ebf99d79a7cf152 (patch) | |
tree | 211f5f6ea9737ddfdbeadb4d0257c48859c4a104 /ld/ldlang.c | |
parent | 07b678c0c3408cebd7515a53a9631b5b2610164c (diff) | |
download | gdb-7b17f854f7e3bfbd1be0bd3e4ebf99d79a7cf152.zip gdb-7b17f854f7e3bfbd1be0bd3e4ebf99d79a7cf152.tar.gz gdb-7b17f854f7e3bfbd1be0bd3e4ebf99d79a7cf152.tar.bz2 |
* ldlang.c (print_assignment): Update print_dot for assignments to ".".
* ldexp.c (exp_print_token): Add "infix_p" argument.
(exp_print_tree): Update accordingly.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index afa77e1..f6b9501 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2211,7 +2211,17 @@ print_assignment (assignment, output_section) result = exp_fold_tree (assignment->exp->assign.src, output_section, lang_final_phase_enum, print_dot, &print_dot); if (result.valid_p) - minfo ("0x%V", result.value + result.section->bfd_section->vma); + { + const char *dst; + bfd_vma value; + + value = result.value + result.section->bfd_section->vma; + dst = assignment->exp->assign.dst; + + minfo ("0x%V", value); + if (dst[0] == '.' && dst[1] == 0) + print_dot = value; + } else { minfo ("*undef* "); |