Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / autoimport-gnu-implib.s
blobd9dc9d7a38fdc348844dcdc9ee09b521003acd32
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-head.s -filetype=obj -o %t-dabcdh.o
4 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-data.s -filetype=obj -o %t-dabcds00000.o
5 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-tail.s -filetype=obj -o %t-dabcdt.o
6 # RUN: rm -f %t-implib.a
7 # RUN: llvm-ar rcs %t-implib.a %t-dabcdh.o %t-dabcds00000.o %t-dabcdt.o
9 # RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj
10 # RUN: lld-link -lldmingw -debug:symtab -out:%t.exe -entry:main %t.obj %t-implib.a -verbose
12 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
13 # RUN: llvm-nm %t.exe | FileCheck -check-prefix=SYMBOLS %s
15 # IMPORTS: Import {
16 # IMPORTS-NEXT: Name: foo.dll
17 # IMPORTS-NEXT: ImportLookupTableRVA:
18 # IMPORTS-NEXT: ImportAddressTableRVA:
19 # IMPORTS-NEXT: Symbol: data (0)
20 # IMPORTS-NEXT: }
22 # Check that the automatically imported symbol "data" is not listed in
23 # the symbol table.
24 # SYMBOLS-NOT: {{ }}data
26 .global main
27 .text
28 main:
29 movl data(%rip), %eax
30 ret
31 .global _pei386_runtime_relocator
32 _pei386_runtime_relocator:
33 ret
34 .data