aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arc.c
diff options
context:
space:
mode:
authorShahab Vahedi <shahab@synopsys.com>2020-03-24 15:25:24 +0100
committerAlan Modra <amodra@gmail.com>2020-03-25 15:40:49 +1030
commitcf2611febcfa6b7c680de31071c5658e7463eee4 (patch)
tree75149fff909d5f3b94096944279ca6f5d9136c2d /bfd/elf32-arc.c
parent86fd7e2e109813b3934cf7880b93d4bc8f779b8b (diff)
downloadgdb-cf2611febcfa6b7c680de31071c5658e7463eee4.zip
gdb-cf2611febcfa6b7c680de31071c5658e7463eee4.tar.gz
gdb-cf2611febcfa6b7c680de31071c5658e7463eee4.tar.bz2
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.
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r--bfd/elf32-arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index 5179fc3..df6e3c4 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); \