2015-08-06 16:47:46 +00:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console \
|
2015-09-03 14:49:47 +00:00
|
|
|
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:STD64.DLL \
|
2015-06-21 22:31:52 +00:00
|
|
|
# RUN: /alternatename:__delayLoadHelper2=main
|
2019-05-01 05:49:01 +00: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-21 22:31:52 +00:00
|
|
|
|
2015-06-26 22:05:32 +00:00
|
|
|
IMPORT: DelayImport {
|
|
|
|
IMPORT-NEXT: Name: std64.dll
|
|
|
|
IMPORT-NEXT: Attributes: 0x1
|
2018-04-17 23:28:52 +00:00
|
|
|
IMPORT-NEXT: ModuleHandle: 0x3018
|
|
|
|
IMPORT-NEXT: ImportAddressTable: 0x3020
|
|
|
|
IMPORT-NEXT: ImportNameTable: 0x2040
|
2015-06-26 22:05:32 +00:00
|
|
|
IMPORT-NEXT: BoundDelayImportTable: 0x0
|
|
|
|
IMPORT-NEXT: UnloadDelayImportTable: 0x0
|
|
|
|
IMPORT-NEXT: Import {
|
|
|
|
IMPORT-NEXT: Symbol: ExitProcess (0)
|
2018-04-04 19:15:55 +00:00
|
|
|
IMPORT-NEXT: Address: 0x140001066
|
2015-06-26 22:05:32 +00:00
|
|
|
IMPORT-NEXT: }
|
|
|
|
IMPORT-NEXT: Import {
|
|
|
|
IMPORT-NEXT: Symbol: (50)
|
2019-07-11 21:19:11 +00:00
|
|
|
IMPORT-NEXT: Address: 0x140001072
|
2015-06-26 22:05:32 +00:00
|
|
|
IMPORT-NEXT: }
|
|
|
|
IMPORT-NEXT: Import {
|
2015-07-03 04:32:49 +00:00
|
|
|
IMPORT-NEXT: Symbol: MessageBoxA (0)
|
2019-07-11 21:19:11 +00:00
|
|
|
IMPORT-NEXT: Address: 0x14000107E
|
2015-06-26 22:05:32 +00:00
|
|
|
IMPORT-NEXT: }
|
|
|
|
IMPORT-NEXT: }
|
|
|
|
|
|
|
|
BASEREL: BaseReloc [
|
|
|
|
BASEREL-NEXT: Entry {
|
|
|
|
BASEREL-NEXT: Type: DIR64
|
2018-04-17 23:28:52 +00:00
|
|
|
BASEREL-NEXT: Address: 0x3020
|
2015-06-26 22:05:32 +00:00
|
|
|
BASEREL-NEXT: }
|
|
|
|
BASEREL-NEXT: Entry {
|
|
|
|
BASEREL-NEXT: Type: DIR64
|
2018-04-17 23:28:52 +00:00
|
|
|
BASEREL-NEXT: Address: 0x3028
|
2015-06-26 22:05:32 +00:00
|
|
|
BASEREL-NEXT: }
|
|
|
|
BASEREL-NEXT: Entry {
|
|
|
|
BASEREL-NEXT: Type: DIR64
|
2018-04-17 23:28:52 +00:00
|
|
|
BASEREL-NEXT: Address: 0x3030
|
2015-06-26 22:05:32 +00:00
|
|
|
BASEREL-NEXT: }
|