Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / armnt-imports.test
blob51286879dd46d39a64aa84fd7aa41903ea52e810
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.exe /subsystem:console %t.obj \
3 # RUN:   /entry:mainCRTStartup %p/Inputs/library.lib
4 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s
6 # CHECK: Import {
7 # CHECK:   Name: library.dll
8 # CHECK:   ImportLookupTableRVA: 0x2028
9 # CHECK:   ImportAddressTableRVA: 0x2030
10 # CHECK:   Symbol: function (0)
11 # CHECK: }
13 --- !COFF
14 header:
15   Machine:         IMAGE_FILE_MACHINE_ARMNT
16   Characteristics: [  ]
17 sections:
18   - Name:            .text
19     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
20     Alignment:       4
21     SectionData:     40F20000C0F2000000680047
22     Relocations:
23       - VirtualAddress:  0
24         SymbolName:      __imp_function
25         Type:            IMAGE_REL_ARM_MOV32T
26 symbols:
27   - Name:            .text
28     Value:           0
29     SectionNumber:   1
30     SimpleType:      IMAGE_SYM_TYPE_NULL
31     ComplexType:     IMAGE_SYM_DTYPE_NULL
32     StorageClass:    IMAGE_SYM_CLASS_STATIC
33     SectionDefinition:
34       Length:          12
35       NumberOfRelocations: 1
36       NumberOfLinenumbers: 0
37       CheckSum:        0
38       Number:          1
39   - Name:            mainCRTStartup
40     Value:           0
41     SectionNumber:   1
42     SimpleType:      IMAGE_SYM_TYPE_NULL
43     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
44     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
45   - Name:            __imp_function
46     Value:           0
47     SectionNumber:   0
48     SimpleType:      IMAGE_SYM_TYPE_NULL
49     ComplexType:     IMAGE_SYM_DTYPE_NULL
50     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
51 ...