forked from OSchip/llvm-project
20 lines
671 B
Plaintext
20 lines
671 B
Plaintext
![]() |
# REQUIRES: winres
|
||
|
|
||
|
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||
|
# RUN: lld -flavor link2 /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2
|
||
|
# RUN: llvm-objdump -p %t.dll | FileCheck -check-prefix=EXPORT %s
|
||
|
|
||
|
EXPORT: Export Table:
|
||
|
EXPORT: DLL name: dll.test.tmp.dll
|
||
|
EXPORT: Ordinal RVA Name
|
||
|
EXPORT-NEXT: 0 0
|
||
|
EXPORT-NEXT: 1 0x1008 exportfn1
|
||
|
EXPORT-NEXT: 2 0x1010 exportfn2
|
||
|
|
||
|
# RUN: yaml2obj < %p/Inputs/import.yaml > %t2.obj
|
||
|
# RUN: lld -flavor link2 /out:%t2.exe %t2.obj %t.lib
|
||
|
# RUN: llvm-readobj -coff-imports %t2.exe | FileCheck -check-prefix=IMPORT %s
|
||
|
|
||
|
IMPORT: Symbol: exportfn1
|
||
|
IMPORT: Symbol: exportfn2
|