OSDN Git Service

[elfabi] Add support for reading DT_NEEDED from binaries
authorArmando Montanez <amontanez@google.com>
Fri, 18 Jan 2019 20:56:03 +0000 (20:56 +0000)
committerArmando Montanez <amontanez@google.com>
Fri, 18 Jan 2019 20:56:03 +0000 (20:56 +0000)
commit3ae624385ff30abd0020340b038213db49dbefa4
tree18708d97ee0b8f0eddd8f485b8c51c95782549f2
parent34b76d05a1c774f85cc6bef6369de6fe9da7bdd3
[elfabi] Add support for reading DT_NEEDED from binaries

This patch gives elfabi the ability to read DT_NEEDED entries from ELF binaries
to populate NeededLibs in TextAPI's ELFStub.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351592 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-elfabi/binary-read-neededlibs-bad-offset.test [new file with mode: 0644]
test/tools/llvm-elfabi/binary-read-neededlibs.test [new file with mode: 0644]
tools/llvm-elfabi/ELFObjHandler.cpp