mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
* ldlang.c (print_assignment): Update print_dot for assignments to ".".
* ldexp.c (exp_print_token): Add "infix_p" argument. (exp_print_tree): Update accordingly.
This commit is contained in:
12
ld/ldlang.c
12
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* ");
|
||||
|
Reference in New Issue
Block a user