From 7b17f854f7e3bfbd1be0bd3e4ebf99d79a7cf152 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 30 Apr 2002 09:21:27 +0000 Subject: * ldlang.c (print_assignment): Update print_dot for assignments to ".". * ldexp.c (exp_print_token): Add "infix_p" argument. (exp_print_tree): Update accordingly. --- ld/ldlang.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ld/ldlang.c') 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* "); -- cgit v1.1