[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / lld / test / COFF / reloc-x86.test
blobbd5aa079c91104dbd45b9afb3125d00bfde7a47b
1 # REQUIRES: x86
2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link -safeseh:no /out:%t.exe /entry:main /base:0x400000 %t.obj
4 # RUN: llvm-objdump -d %t.exe | FileCheck %s
6 # CHECK: .text:
7 # CHECK: 1000: a1 00 00 00 00
8 # CHECK: 1005: a1 03 20 40 00
9 # CHECK: 100a: a1 03 20 00 00
10 # CHECK: 100f: a1 ef 0f 00 00
11 # CHECK: 1014: a1 00 00 02 00
12 # CHECK: 1019: a1 03 00 00 00
14 --- !COFF
15 header:
16   Machine:         IMAGE_FILE_MACHINE_I386
17   Characteristics: []
18 sections:
19   - Name:            .text
20     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
21     Alignment:       4096
22     SectionData:     A100000000A100000000A100000000A100000000A100000000A100000000
23     Relocations:
24       - VirtualAddress:  1
25         SymbolName:      _foo
26         Type:            IMAGE_REL_I386_ABSOLUTE
27       - VirtualAddress:  6
28         SymbolName:      _foo
29         Type:            IMAGE_REL_I386_DIR32
30       - VirtualAddress:  11
31         SymbolName:      _foo
32         Type:            IMAGE_REL_I386_DIR32NB
33       - VirtualAddress:  16
34         SymbolName:      _foo
35         Type:            IMAGE_REL_I386_REL32
36       - VirtualAddress:  23
37         SymbolName:      _foo
38         Type:            IMAGE_REL_I386_SECTION
39       - VirtualAddress:  26
40         SymbolName:      _foo
41         Type:            IMAGE_REL_I386_SECREL
42   - Name:            .zzz
43     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
44     Alignment:       4096
45     SectionData:     0000000000000000
46 symbols:
47   - Name:            .text
48     Value:           0
49     SectionNumber:   1
50     SimpleType:      IMAGE_SYM_TYPE_NULL
51     ComplexType:     IMAGE_SYM_DTYPE_NULL
52     StorageClass:    IMAGE_SYM_CLASS_STATIC
53     SectionDefinition:
54       Length:          6
55       NumberOfRelocations: 0
56       NumberOfLinenumbers: 0
57       CheckSum:        0
58       Number:          0
59   - Name:            .zzz
60     Value:           0
61     SectionNumber:   2
62     SimpleType:      IMAGE_SYM_TYPE_NULL
63     ComplexType:     IMAGE_SYM_DTYPE_NULL
64     StorageClass:    IMAGE_SYM_CLASS_STATIC
65     SectionDefinition:
66       Length:          8
67       NumberOfRelocations: 0
68       NumberOfLinenumbers: 0
69       CheckSum:        0
70       Number:          0
71   - Name:            _main
72     Value:           0
73     SectionNumber:   1
74     SimpleType:      IMAGE_SYM_TYPE_NULL
75     ComplexType:     IMAGE_SYM_DTYPE_NULL
76     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
77   - Name:            _foo
78     Value:           3
79     SectionNumber:   2
80     SimpleType:      IMAGE_SYM_TYPE_NULL
81     ComplexType:     IMAGE_SYM_DTYPE_NULL
82     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
83 ...