OSDN Git Service

llvm-readobj: Add support for reading relocations in the Android packed format.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 25 Oct 2017 03:37:12 +0000 (03:37 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 25 Oct 2017 03:37:12 +0000 (03:37 +0000)
commit68a3deb50e2c8d88704d335c8462b06a767886d1
tree674d3307cb3fd176d31e3ea9ae13b31f27515ba8
parent52a43b285cd860f1f3e1f4eb11467bc615f68779
llvm-readobj: Add support for reading relocations in the Android packed format.

This is in preparation for testing lld's upcoming relocation packing
feature (D39152). I have verified that this implementation correctly
unpacks the relocations from a Chromium DSO built with gold and the
Android relocation packer for ARM32 and ARM64.

Differential Revision: https://reviews.llvm.org/D39272

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316543 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/BinaryFormat/ELF.h
include/llvm/Object/ELF.h
lib/Object/ELF.cpp
lib/ObjectYAML/ELFYAML.cpp
test/tools/llvm-readobj/Inputs/elf-packed-relocs1.s [new file with mode: 0644]
test/tools/llvm-readobj/Inputs/elf-packed-relocs2.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs-empty.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs-error1.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs-error2.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs-error3.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs-error4.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs-error5.s [new file with mode: 0644]
test/tools/llvm-readobj/elf-packed-relocs.test [new file with mode: 0644]
tools/llvm-readobj/ELFDumper.cpp