From: Shahab Vahedi Date: Tue, 24 Mar 2020 14:25:24 +0000 (+0100) Subject: arc: Use correct string when printing bfd DEBUG data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf2611febcfa6b7c680de31071c5658e7463eee4;p=binutils-gdb.git arc: Use correct string when printing bfd DEBUG data PRINT_DEBUG_RELOC_INFO_BEFORE() macro prints bunch of parameters for debugging purposes. Due to a seemingly copy/paste mistake, the "input_section->vma" is printed under the field name "symbol_section->vma". This commit fixes that. This fix is a courtesy of xiangzhai. * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the correct field name in the output string. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b4160c943a5..7f04a97daac 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-03-25 Shahab Vahedi + + * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the + correct field name in the output string. + 2020-03-25 Alan Modra PR 25662 diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 5179fc370c4..df6e3c4e193 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1255,11 +1255,11 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data, else \ ARC_DEBUG ("symbol_section->vma = NULL\n"); \ if (input_section->output_section != NULL) \ - ARC_DEBUG ("symbol_section->vma = %#lx\n", \ + ARC_DEBUG ("input_section->vma = %#lx\n", \ input_section->output_section->vma \ + input_section->output_offset); \ else \ - ARC_DEBUG ("symbol_section->vma = NULL\n"); \ + ARC_DEBUG ("input_section->vma = NULL\n"); \ ARC_DEBUG ("PCL = %#lx\n", P); \ ARC_DEBUG ("P = %#lx\n", P); \ ARC_DEBUG ("G = %#lx\n", G); \