Revert "CodeGen][NewPM] Port MachineScheduler to NPM. (#125703)" (#126268)
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / MachO_unnamed_external.yaml
blob771a22ba8f3f1d26b8de62e15448c8ef40326402
1 # RUN: yaml2obj %s -o %t
2 # RUN: not llvm-jitlink -noexec -entry _anchor %t 2>&1 | FileCheck %s
4 # Test that we generate an error (rather than crashing) if we encounter a
5 # symbol with a string index of zero (no name) with the N_EXT bit set.
7 # CHECK: Symbol at index 1 has no name (string table index 0), but N_EXT bit
9 --- !mach-o
10 FileHeader:
11   magic:           0xFEEDFACF
12   cputype:         0x1000007
13   cpusubtype:      0x3
14   filetype:        0x1
15   ncmds:           4
16   sizeofcmds:      360
17   flags:           0x2000
18   reserved:        0x0
19 LoadCommands:
20   - cmd:             LC_SEGMENT_64
21     cmdsize:         232
22     segname:         ''
23     vmaddr:          0
24     vmsize:          8
25     fileoff:         392
26     filesize:        0
27     maxprot:         7
28     initprot:        7
29     nsects:          2
30     flags:           0
31     Sections:
32       - sectname:        __text
33         segname:         __TEXT
34         addr:            0x0
35         size:            0
36         offset:          0x188
37         align:           0
38         reloff:          0x0
39         nreloc:          0
40         flags:           0x80000000
41         reserved1:       0x0
42         reserved2:       0x0
43         reserved3:       0x0
44         content:         ''
45       - sectname:        __common
46         segname:         __DATA
47         addr:            0x0
48         size:            8
49         offset:          0x0
50         align:           2
51         reloff:          0x0
52         nreloc:          0
53         flags:           0x1
54         reserved1:       0x0
55         reserved2:       0x0
56         reserved3:       0x0
57   - cmd:             LC_BUILD_VERSION
58     cmdsize:         24
59     platform:        1
60     minos:           851968
61     sdk:             0
62     ntools:          0
63   - cmd:             LC_SYMTAB
64     cmdsize:         24
65     symoff:          392
66     nsyms:           2
67     stroff:          424
68     strsize:         16
69   - cmd:             LC_DYSYMTAB
70     cmdsize:         80
71     ilocalsym:       0
72     nlocalsym:       0
73     iextdefsym:      0
74     nextdefsym:      2
75     iundefsym:       2
76     nundefsym:       0
77     tocoff:          0
78     ntoc:            0
79     modtaboff:       0
80     nmodtab:         0
81     extrefsymoff:    0
82     nextrefsyms:     0
83     indirectsymoff:  0
84     nindirectsyms:   0
85     extreloff:       0
86     nextrel:         0
87     locreloff:       0
88     nlocrel:         0
89 LinkEditData:
90   NameList:
91     - n_strx:          1
92       n_type:          0xF
93       n_sect:          2
94       n_desc:          0
95       n_value:         0
96     - n_strx:          0
97       n_type:          0xF
98       n_sect:          2
99       n_desc:          0
100       n_value:         4
101   StringTable:
102     - ''
103     - _anchor
104     - _b
105     - ''
106     - ''
107     - ''
108     - ''