[llvm] r218924 - llvm-readobj: add a test for COFF import-by-ordinal symbols
Rui Ueyama
ruiu at google.com
Thu Oct 2 15:40:56 PDT 2014
Author: ruiu
Date: Thu Oct 2 17:40:55 2014
New Revision: 218924
URL: http://llvm.org/viewvc/llvm-project?rev=218924&view=rev
Log:
llvm-readobj: add a test for COFF import-by-ordinal symbols
Modified:
llvm/trunk/test/tools/llvm-readobj/Inputs/imports.exe.coff-i386
llvm/trunk/test/tools/llvm-readobj/Inputs/imports.exe.coff-x86-64
llvm/trunk/test/tools/llvm-readobj/imports.test
Modified: llvm/trunk/test/tools/llvm-readobj/Inputs/imports.exe.coff-i386
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/Inputs/imports.exe.coff-i386?rev=218924&r1=218923&r2=218924&view=diff
==============================================================================
Binary files - no diff available.
Modified: llvm/trunk/test/tools/llvm-readobj/Inputs/imports.exe.coff-x86-64
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/Inputs/imports.exe.coff-x86-64?rev=218924&r1=218923&r2=218924&view=diff
==============================================================================
Binary files - no diff available.
Modified: llvm/trunk/test/tools/llvm-readobj/imports.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/imports.test?rev=218924&r1=218923&r2=218924&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-readobj/imports.test (original)
+++ llvm/trunk/test/tools/llvm-readobj/imports.test Thu Oct 2 17:40:55 2014
@@ -3,26 +3,42 @@ RUN: llvm-readobj --coff-imports %p/Inpu
X86: Import {
X86-NEXT: Name: KERNEL32.dll
-X86-NEXT: ImportLookupTableRVA: 0x204C
+X86-NEXT: ImportLookupTableRVA: 0x2070
X86-NEXT: ImportAddressTableRVA: 0x2000
X86-NEXT: Symbol: ExitProcess (337)
X86-NEXT: }
X86-NEXT: Import {
X86-NEXT: Name: USER32.dll
-X86-NEXT: ImportLookupTableRVA: 0x2054
+X86-NEXT: ImportLookupTableRVA: 0x2078
X86-NEXT: ImportAddressTableRVA: 0x2008
X86-NEXT: Symbol: MessageBoxA (582)
X86-NEXT: }
+X86-NEXT: Import {
+X86-NEXT: Name: mydll.dll
+X86-NEXT: ImportLookupTableRVA: 0x2080
+X86-NEXT: ImportAddressTableRVA: 0x2010
+X86-NEXT: Symbol: Func2 (1)
+X86-NEXT: Symbol: (3)
+X86-NEXT: Symbol: Func1 (0)
+X86-NEXT: }
X64: Import {
X64-NEXT: Name: KERNEL32.dll
-X64-NEXT: ImportLookupTableRVA: 0x2060
+X64-NEXT: ImportLookupTableRVA: 0x2090
X64-NEXT: ImportAddressTableRVA: 0x2000
X64-NEXT: Symbol: ExitProcess (343)
X64-NEXT: }
X64-NEXT: Import {
X64-NEXT: Name: USER32.dll
-X64-NEXT: ImportLookupTableRVA: 0x2070
+X64-NEXT: ImportLookupTableRVA: 0x20A0
X64-NEXT: ImportAddressTableRVA: 0x2010
X64-NEXT: Symbol: MessageBoxA (586)
X64-NEXT: }
+X64-NEXT: Import {
+X64-NEXT: Name: mydll.dll
+X64-NEXT: ImportLookupTableRVA: 0x20B0
+X64-NEXT: ImportAddressTableRVA: 0x2020
+X64-NEXT: Symbol: Func2 (1)
+X64-NEXT: Symbol: (3)
+X64-NEXT: Symbol: Func1 (0)
+X64-NEXT: }
More information about the llvm-commits
mailing list