1 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console \
2 # RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:STD64.DLL \
3 # RUN: /alternatename:__delayLoadHelper2=main
4 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORT %s
5 # RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s
6 # RUN: llvm-readobj --unwind %t.exe | FileCheck -check-prefix=UNWIND %s
9 IMPORT-NEXT: Name: std64.dll
10 IMPORT-NEXT: Attributes: 0x1
11 IMPORT-NEXT: ModuleHandle: 0x3018
12 IMPORT-NEXT: ImportAddressTable: 0x3020
13 IMPORT-NEXT: ImportNameTable: 0x2050
14 IMPORT-NEXT: BoundDelayImportTable: 0x0
15 IMPORT-NEXT: UnloadDelayImportTable: 0x0
17 IMPORT-NEXT: Symbol: ExitProcess (0)
18 IMPORT-NEXT: Address: 0x140001066
21 IMPORT-NEXT: Symbol: (50)
22 IMPORT-NEXT: Address: 0x140001072
25 IMPORT-NEXT: Symbol: MessageBoxA (0)
26 IMPORT-NEXT: Address: 0x14000107E
32 BASEREL-NEXT: Type: DIR64
33 BASEREL-NEXT: Address: 0x3020
36 BASEREL-NEXT: Type: DIR64
37 BASEREL-NEXT: Address: 0x3028
40 BASEREL-NEXT: Type: DIR64
41 BASEREL-NEXT: Address: 0x3030
44 UNWIND: UnwindInformation [
45 UNWIND-NEXT: RuntimeFunction {
46 UNWIND-NEXT: StartAddress: (0x14000108A)
47 UNWIND-NEXT: EndAddress: (0x1400010DD)
48 UNWIND-NEXT: UnwindInfoAddress: (0x140002000)
49 UNWIND-NEXT: UnwindInfo {
50 UNWIND-NEXT: Version: 1
51 UNWIND-NEXT: Flags [ (0x0)
53 UNWIND-NEXT: PrologSize: 10
54 UNWIND-NEXT: FrameRegister: -
55 UNWIND-NEXT: FrameOffset: -
56 UNWIND-NEXT: UnwindCodeCount: 5
57 UNWIND-NEXT: UnwindCodes [
58 UNWIND-NEXT: 0x0A: ALLOC_SMALL size=72
59 UNWIND-NEXT: 0x06: ALLOC_SMALL size=8
60 UNWIND-NEXT: 0x04: ALLOC_SMALL size=8
61 UNWIND-NEXT: 0x02: ALLOC_SMALL size=8
62 UNWIND-NEXT: 0x01: ALLOC_SMALL size=8