forked from OSchip/llvm-project
31 lines
997 B
Plaintext
31 lines
997 B
Plaintext
# Verify that the lld can handle .lib files and emit .idata sections.
|
|
#
|
|
# RUN: lld -flavor link2 /out:%t.exe /entry:main /subsystem:console \
|
|
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib
|
|
# RUN: llvm-objdump -d %t.exe | FileCheck -check-prefix=TEXT %s
|
|
# RUN: llvm-readobj -coff-imports %t.exe | FileCheck -check-prefix=IMPORT %s
|
|
|
|
TEXT: Disassembly of section .text:
|
|
TEXT-NEXT: .text:
|
|
TEXT-NEXT: subq $40, %rsp
|
|
TEXT-NEXT: movq $0, %rcx
|
|
TEXT-NEXT: leaq -4108(%rip), %rdx
|
|
TEXT-NEXT: leaq -4121(%rip), %r8
|
|
TEXT-NEXT: movl $0, %r9d
|
|
TEXT-NEXT: callq 27
|
|
TEXT-NEXT: movl $0, %ecx
|
|
TEXT-NEXT: callq 5
|
|
TEXT-NEXT: callq 6
|
|
TEXT-NEXT: jmpq *4111(%rip)
|
|
TEXT-NEXT: jmpq *4113(%rip)
|
|
TEXT-NEXT: jmpq *4115(%rip)
|
|
|
|
IMPORT: Import {
|
|
IMPORT-NEXT: Name: std64.dll
|
|
IMPORT-NEXT: ImportLookupTableRVA: 0x3028
|
|
IMPORT-NEXT: ImportAddressTableRVA: 0x3048
|
|
IMPORT-NEXT: Symbol: ExitProcess (0)
|
|
IMPORT-NEXT: Symbol: (50)
|
|
IMPORT-NEXT: Symbol: MessageBoxA (1)
|
|
IMPORT-NEXT: }
|