[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)
commit56d18121e2e45d711e171356d53371b3a868ec7c
treec8eb86bb2068e0054fb38672d47a271837556691
parent215c4f68f6a9930e76ad9051e640255757f2aacb
[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

llvm-svn: 351592
llvm/test/tools/llvm-elfabi/binary-read-neededlibs-bad-offset.test [new file with mode: 0644]
llvm/test/tools/llvm-elfabi/binary-read-neededlibs.test [new file with mode: 0644]
llvm/tools/llvm-elfabi/ELFObjHandler.cpp