Revert "CodeGen][NewPM] Port MachineScheduler to NPM. (#125703)" (#126268)
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / MachO_subtractor_single_block.yaml
blob05c16d1ad1ca3e0a1ecdcf1c236cc9a4f674d048
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-jitlink -noexec -phony-externals %t
4 # Check that MachO::X86_64_RELOC_SUBTRACTOR relocations work when the fixup
5 # location and target are in the same block (in this case in the __eh_frame
6 # section).
8 --- !mach-o
9 IsLittleEndian: true
10 FileHeader:
11   magic:           0xFEEDFACF
12   cputype:         0x1000007
13   cpusubtype:      0x3
14   filetype:        0x1
15   ncmds:           4
16   sizeofcmds:      384
17   flags:           0x0
18   reserved:        0x0
19 LoadCommands:
20   - cmd:             LC_SEGMENT_64
21     cmdsize:         312
22     segname:         ''
23     vmaddr:          0
24     vmsize:          96
25     fileoff:         448
26     filesize:        96
27     maxprot:         7
28     initprot:        7
29     nsects:          3
30     flags:           0
31     Sections:
32       - sectname:        __text
33         segname:         __TEXT
34         addr:            0x0
35         size:            3
36         offset:          0x1C0
37         align:           4
38         reloff:          0x0
39         nreloc:          0
40         flags:           0x80000400
41         reserved1:       0x0
42         reserved2:       0x0
43         reserved3:       0x0
44         content:         31C0C3
45       - sectname:        __eh_frame
46         segname:         __TEXT
47         addr:            0x8
48         size:            56
49         offset:          0x1C8
50         align:           3
51         reloff:          0x220
52         nreloc:          4
53         flags:           0x0
54         reserved1:       0x0
55         reserved2:       0x0
56         reserved3:       0x0
57         content:         1400000000000000017A520001781001100C0708900100001C00000004000000F8FFFFFFFFFFFFFF03000000000000000000000000000000
58         relocations:
59           - address:         0x1C
60             symbolnum:       0
61             pcrel:           false
62             length:          2
63             extern:          true
64             type:            5
65             scattered:       false
66             value:           0
67           - address:         0x1C
68             symbolnum:       1
69             pcrel:           false
70             length:          2
71             extern:          true
72             type:            0
73             scattered:       false
74             value:           0
75           - address:         0x20
76             symbolnum:       1
77             pcrel:           false
78             length:          3
79             extern:          true
80             type:            5
81             scattered:       false
82             value:           0
83           - address:         0x20
84             symbolnum:       2
85             pcrel:           false
86             length:          3
87             extern:          true
88             type:            0
89             scattered:       false
90             value:           0
91       - sectname:        __compact_unwind
92         segname:         __LD
93         addr:            0x40
94         size:            32
95         offset:          0x200
96         align:           3
97         reloff:          0x240
98         nreloc:          1
99         flags:           0x2000000
100         reserved1:       0x0
101         reserved2:       0x0
102         reserved3:       0x0
103         content:         '0000000000000000030000000000000400000000000000000000000000000000'
104         relocations:
105           - address:         0x0
106             symbolnum:       2
107             pcrel:           false
108             length:          3
109             extern:          true
110             type:            0
111             scattered:       false
112             value:           0
113   - cmd:             LC_SYMTAB
114     cmdsize:         24
115     symoff:          584
116     nsyms:           3
117     stroff:          632
118     strsize:         32
119   - cmd:             LC_BUILD_VERSION
120     cmdsize:         32
121     platform:        1
122     minos:           917504
123     sdk:             0
124     ntools:          1
125     Tools:
126       - tool:            3
127         version:         59048448
128   - cmd:             LC_DATA_IN_CODE
129     cmdsize:         16
130     dataoff:         584
131     datasize:        0
132 LinkEditData:
133   NameList:
134     - n_strx:          8
135       n_type:          0xE
136       n_sect:          2
137       n_desc:          0
138       n_value:         8
139     - n_strx:          18
140       n_type:          0xE
141       n_sect:          2
142       n_desc:          0
143       n_value:         32
144     - n_strx:          2
145       n_type:          0xF
146       n_sect:          1
147       n_desc:          32
148       n_value:         0
149   StringTable:
150     - ' '
151     - _main
152     - EH_Frame1
153     - func.eh
154     - ''
155     - ''
156     - ''
157     - ''
158     - ''
159     - ''