2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console \
|
2015-09-03 22:49:47 +08:00
|
|
|
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:STD64.DLL \
|
2015-06-22 06:31:52 +08:00
|
|
|
# RUN: /alternatename:__delayLoadHelper2=main
|
2015-06-27 06:05:32 +08:00
|
|
|
# RUN: llvm-readobj -coff-imports %t.exe | FileCheck -check-prefix=IMPORT %s
|
|
|
|
# RUN: llvm-readobj -coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s
|
2015-06-22 06:31:52 +08:00
|
|
|
|
2015-06-27 06:05:32 +08:00
|
|
|
IMPORT: DelayImport {
|
|
|
|
IMPORT-NEXT: Name: std64.dll
|
|
|
|
IMPORT-NEXT: Attributes: 0x1
|
|
|
|
IMPORT-NEXT: ModuleHandle: 0x1018
|
|
|
|
IMPORT-NEXT: ImportAddressTable: 0x1020
|
|
|
|
IMPORT-NEXT: ImportNameTable: 0x3040
|
|
|
|
IMPORT-NEXT: BoundDelayImportTable: 0x0
|
|
|
|
IMPORT-NEXT: UnloadDelayImportTable: 0x0
|
|
|
|
IMPORT-NEXT: Import {
|
|
|
|
IMPORT-NEXT: Symbol: ExitProcess (0)
|
|
|
|
IMPORT-NEXT: Address: 0x140002066
|
|
|
|
IMPORT-NEXT: }
|
|
|
|
IMPORT-NEXT: Import {
|
|
|
|
IMPORT-NEXT: Symbol: (50)
|
|
|
|
IMPORT-NEXT: Address: 0x1400020BD
|
|
|
|
IMPORT-NEXT: }
|
|
|
|
IMPORT-NEXT: Import {
|
2015-07-03 12:32:49 +08:00
|
|
|
IMPORT-NEXT: Symbol: MessageBoxA (0)
|
2015-06-27 06:05:32 +08:00
|
|
|
IMPORT-NEXT: Address: 0x140002114
|
|
|
|
IMPORT-NEXT: }
|
|
|
|
IMPORT-NEXT: }
|
|
|
|
|
|
|
|
BASEREL: BaseReloc [
|
|
|
|
BASEREL-NEXT: Entry {
|
|
|
|
BASEREL-NEXT: Type: DIR64
|
|
|
|
BASEREL-NEXT: Address: 0x1020
|
|
|
|
BASEREL-NEXT: }
|
|
|
|
BASEREL-NEXT: Entry {
|
|
|
|
BASEREL-NEXT: Type: DIR64
|
|
|
|
BASEREL-NEXT: Address: 0x1028
|
|
|
|
BASEREL-NEXT: }
|
|
|
|
BASEREL-NEXT: Entry {
|
|
|
|
BASEREL-NEXT: Type: DIR64
|
|
|
|
BASEREL-NEXT: Address: 0x1030
|
|
|
|
BASEREL-NEXT: }
|