[llvm-objdump] - Print relocation record in a GNU format.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 7 May 2019 13:14:18 +0000 (13:14 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 7 May 2019 13:14:18 +0000 (13:14 +0000)
commit5c922f698847a7059e9015dcf73721af3be852a3
tree179e98140e648ddea06b05adf55f41afe460ef01
parent7399ad31931d1e63ba81937f4128a23add3d3511
[llvm-objdump] - Print relocation record in a GNU format.

This fixes the https://bugs.llvm.org/show_bug.cgi?id=41355.

Previously with -r we printed relocation section name instead of the target section name.
It was like this: "RELOCATION RECORDS FOR [.rel.text]"
Now it is: "RELOCATION RECORDS FOR [.text]"

Also when relocation target section has more than one relocation section,
we did not combine the output. Now we do.

Differential revision: https://reviews.llvm.org/D61312

llvm-svn: 360143
16 files changed:
llvm/include/llvm/Object/ObjectFile.h
llvm/test/CodeGen/BPF/reloc-btf.ll
llvm/test/CodeGen/BPF/reloc.ll
llvm/test/DebugInfo/X86/DW_AT_location-reference.ll
llvm/test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll
llvm/test/MC/AArch64/basic-pic.s
llvm/test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s
llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
llvm/test/MC/ARM/dwarf-asm-nonstandard-section.s
llvm/test/MC/ARM/dwarf-asm-single-section.s
llvm/test/MC/ARM/symbol-variants.s
llvm/test/MC/Hexagon/extended_relocations.ll
llvm/test/Object/objdump-relocations.test
llvm/test/Object/objdump-shndx.test
llvm/test/tools/llvm-objdump/relocations-elf.test
llvm/tools/llvm-objdump/llvm-objdump.cpp