forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds a new flag "-coff-imports" to llvm-readobj.
When the flag is given, the command prints out the COFF import table. Currently only the import table directory will be printed. I'm going to make another patch to print out the imported symbols. The implementation of import directory entry iterator in COFFObjectFile.cpp was buggy. This patch fixes that too. http://reviews.llvm.org/D5569 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218891 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
8 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
RUN: llvm-readobj --coff-imports %p/Inputs/imports.exe.coff-i386 | FileCheck -check-prefix=X86 %s | ||
RUN: llvm-readobj --coff-imports %p/Inputs/imports.exe.coff-x86-64 | FileCheck -check-prefix=X64 %s | ||
|
||
X86: Import { | ||
X86-NEXT: Name: KERNEL32.dll | ||
X86-NEXT: ImportLookupTableRVA: 0x204C | ||
X86-NEXT: ImportAddressTableRVA: 0x2000 | ||
X86-NEXT: } | ||
X86-NEXT: Import { | ||
X86-NEXT: Name: USER32.dll | ||
X86-NEXT: ImportLookupTableRVA: 0x2054 | ||
X86-NEXT: ImportAddressTableRVA: 0x2008 | ||
X86-NEXT: } | ||
|
||
X64: Import { | ||
X64-NEXT: Name: KERNEL32.dll | ||
X64-NEXT: ImportLookupTableRVA: 0x2060 | ||
X64-NEXT: ImportAddressTableRVA: 0x2000 | ||
X64-NEXT: } | ||
X64-NEXT: Import { | ||
X64-NEXT: Name: USER32.dll | ||
X64-NEXT: ImportLookupTableRVA: 0x2070 | ||
X64-NEXT: ImportAddressTableRVA: 0x2010 | ||
X64-NEXT: } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters