[PATCH] D61312: [llvm-objdump] - Print relocation record in a GNU format.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 07:16:18 PDT 2019


grimar created this revision.
grimar added reviewers: jhenderson, rupprecht, jakehehrlich.
Herald added a subscriber: javed.absar.

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.


https://reviews.llvm.org/D61312

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61312.197321.patch
Type: text/x-patch
Size: 14450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190430/8e280762/attachment.bin>


More information about the llvm-commits mailing list