OSDN Git Service

[elfabi] Introduce tool for ELF TextAPI
authorArmando Montanez <amontanez@google.com>
Thu, 3 Jan 2019 18:32:36 +0000 (18:32 +0000)
committerArmando Montanez <amontanez@google.com>
Thu, 3 Jan 2019 18:32:36 +0000 (18:32 +0000)
commit18952b81f88f4e8d39242b011a45cd787a01d2a1
tree74b38dce37a14267bd5db2a45c3a311c7578c8b9
parent9e31dd76e322d48a0fd4fb39723ac953fccfdf06
[elfabi] Introduce tool for ELF TextAPI

Follow up for D53051

This patch introduces the tool associated with the ELF implementation of
TextAPI (previously llvm-tapi, renamed for better distinction). This
tool will house a number of features related to enalysis and
manipulation of shared object's exposed interfaces. The first major
feature for this tool is support for producing binary stubs that are
useful for compile-time linking of shared objects. This patch introduces
beginnings of support for reading binary ELF objects to work towards
that goal.

Added:

 - elfabi tool.
 - support for reading architecture from a binary ELF file into an
 ELFStub.
 - Support for writing .tbe files.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350341 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
test/CMakeLists.txt
test/tools/llvm-elfabi/binary-read-arch.test [new file with mode: 0644]
test/tools/llvm-elfabi/fail-file-open.test [new file with mode: 0644]
test/tools/llvm-elfabi/read-unsupported-file.test [new file with mode: 0644]
test/tools/llvm-elfabi/replace-soname-tbe.test [new file with mode: 0644]
test/tools/llvm-elfabi/tbe-emits-current-version.test [new file with mode: 0644]
test/tools/llvm-elfabi/tbe-read-basic.test [new file with mode: 0644]
tools/LLVMBuild.txt
tools/llvm-elfabi/CMakeLists.txt [new file with mode: 0644]
tools/llvm-elfabi/ELFObjHandler.cpp [new file with mode: 0644]
tools/llvm-elfabi/ELFObjHandler.h [new file with mode: 0644]
tools/llvm-elfabi/ErrorCollector.cpp [new file with mode: 0644]
tools/llvm-elfabi/ErrorCollector.h [new file with mode: 0644]
tools/llvm-elfabi/LLVMBuild.txt [new file with mode: 0644]
tools/llvm-elfabi/llvm-elfabi.cpp [new file with mode: 0644]