OSDN Git Service

[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)
commitf4cd658f2db0cb055e89e5d1ff320969f19d0452
tree488afe850a82afc39d521625312d01234cd521fb
parent6206720c41672c743569ef1e8f4f5b5a3fdcac90
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360143 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/llvm/Object/ObjectFile.h
test/CodeGen/BPF/reloc-btf.ll
test/CodeGen/BPF/reloc.ll
test/DebugInfo/X86/DW_AT_location-reference.ll
test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll
test/MC/AArch64/basic-pic.s
test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s
test/MC/ARM/dwarf-asm-multiple-sections.s
test/MC/ARM/dwarf-asm-nonstandard-section.s
test/MC/ARM/dwarf-asm-single-section.s
test/MC/ARM/symbol-variants.s
test/MC/Hexagon/extended_relocations.ll
test/Object/objdump-relocations.test
test/Object/objdump-shndx.test
test/tools/llvm-objdump/relocations-elf.test
tools/llvm-objdump/llvm-objdump.cpp