35 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-head.s -filetype=obj -o %t-dabcdh.o4# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-data.s -filetype=obj -o %t-dabcds00000.o5# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-tail.s -filetype=obj -o %t-dabcdt.o6# RUN: rm -f %t-implib.a7# RUN: llvm-ar rcs %t-implib.a %t-dabcdh.o %t-dabcds00000.o %t-dabcdt.o8 9# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj10# RUN: lld-link -lldmingw -debug:symtab -out:%t.exe -entry:main %t.obj %t-implib.a -verbose11 12# RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s13# RUN: llvm-nm %t.exe | FileCheck -check-prefix=SYMBOLS %s14 15# IMPORTS: Import {16# IMPORTS-NEXT: Name: foo.dll17# IMPORTS-NEXT: ImportLookupTableRVA:18# IMPORTS-NEXT: ImportAddressTableRVA:19# IMPORTS-NEXT: Symbol: data (0)20# IMPORTS-NEXT: }21 22# Check that the automatically imported symbol "data" is not listed in23# the symbol table.24# SYMBOLS-NOT: {{ }}data25 26 .global main27 .text28main:29 movl data(%rip), %eax30 ret31 .global _pei386_runtime_relocator32_pei386_runtime_relocator:33 ret34 .data35