arc: Use correct string when printing bfd DEBUG data
authorShahab Vahedi <shahab@synopsys.com>
Tue, 24 Mar 2020 14:25:24 +0000 (15:25 +0100)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Mar 2020 05:10:49 +0000 (15:40 +1030)
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.

bfd/ChangeLog
bfd/elf32-arc.c

index b4160c943a5b1a1d836edf7146b7bda1b04f9c38..7f04a97daac8a2c5f1c962bf2519dc4e07adb28b 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-25  Shahab Vahedi  <shahab@synopsys.com>
+
+       * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the
+       correct field name in the output string.
+
 2020-03-25  Alan Modra  <amodra@gmail.com>
 
        PR 25662
index 5179fc370c4693f82ac235bd25b641aa8ad8be70..df6e3c4e193ffd9a9a9fadd7ecaedff379a446df 100644 (file)
@@ -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);                                     \