mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
[llvm-readobj] Add ELF .dynamic table dumping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,6 +19,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm-readobj.h"
|
||||
|
||||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/Analysis/Verifier.h"
|
||||
#include "llvm/Object/ELF.h"
|
||||
@ -263,6 +265,13 @@ int main(int argc, char** argv) {
|
||||
dump(obj, &dumpSection, obj->begin_sections(), obj->end_sections(),
|
||||
"Section iteration failed");
|
||||
|
||||
if (obj->isELF()) {
|
||||
if (ErrorOr<void> e = dumpELFDynamicTable(obj, outs()))
|
||||
;
|
||||
else
|
||||
errs() << "InputFilename" << ": " << error_code(e).message() << "\n";
|
||||
}
|
||||
|
||||
outs() << "Libraries needed:\n";
|
||||
dump(obj, &dumpLibrary, obj->begin_libraries_needed(),
|
||||
obj->end_libraries_needed(), "Needed libraries iteration failed");
|
||||
|
Reference in New Issue
Block a user