Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / Object / Inputs / MachO / chained-fixups.yaml
blob1079b6f8f816ea229422b9a321f3633afc63f7f4
1 # This file was produced using:
2 #   echo "int ext;" > a.c
3 #   xcrun --sdk iphoneos clang -target arm64-apple-ios15.1 -o a.o a.c -c
4 #   xcrun --sdk iphoneos clang -target arm64-apple-ios15.1 -dynamiclib a.o -o liba.dylib -install_name @executable_path/liba.dylib
5 #   echo "extern int ext;" > b.c
6 #   echo "int padding;" >> b.c
7 #   echo "int *p = &ext + 4;" >> b.c
8 #   xcrun --sdk iphoneos clang -target arm64-apple-ios15.1 -o b.o b.c -c
9 #   xcrun --sdk iphoneos clang -target arm64-apple-ios15.1 -dynamiclib b.o -o libfixups.dylib -install_name @executable_path/libfixups.dylib -L. -la
10 --- !mach-o
11 FileHeader:
12   magic:           0xFEEDFACF
13   cputype:         0x100000C
14   cpusubtype:      0x0
15   filetype:        0x6
16   ncmds:           16
17   sizeofcmds:      816
18   flags:           0x100085
19   reserved:        0x0
20 LoadCommands:
21   - cmd:             LC_SEGMENT_64
22     cmdsize:         152
23     segname:         __TEXT
24     vmaddr:          0
25     vmsize:          16384
26     fileoff:         0
27     filesize:        16384
28     maxprot:         5
29     initprot:        5
30     nsects:          1
31     flags:           0
32     Sections:
33       - sectname:        __text
34         segname:         __TEXT
35         addr:            0x4000
36         size:            0
37         offset:          0x4000
38         align:           0
39         reloff:          0x0
40         nreloc:          0
41         flags:           0x80000400
42         reserved1:       0x0
43         reserved2:       0x0
44         reserved3:       0x0
45         content:         ''
46   - cmd:             LC_SEGMENT_64
47     cmdsize:         152
48     segname:         __DATA
49     vmaddr:          16384
50     vmsize:          16384
51     fileoff:         16384
52     filesize:        16384
53     maxprot:         3
54     initprot:        3
55     nsects:          1
56     flags:           0
57     Sections:
58       - sectname:        __data
59         segname:         __DATA
60         addr:            0x4000
61         size:            8
62         offset:          0x4000
63         align:           3
64         reloff:          0x0
65         nreloc:          0
66         flags:           0x0
67         reserved1:       0x0
68         reserved2:       0x0
69         reserved3:       0x0
70         content:         '0000001000000080'
71   - cmd:             LC_SEGMENT_64
72     cmdsize:         72
73     segname:         __LINKEDIT
74     vmaddr:          32768
75     vmsize:          16384
76     fileoff:         32768
77     filesize:        160
78     maxprot:         1
79     initprot:        1
80     nsects:          0
81     flags:           0
82   - cmd:             LC_ID_DYLIB
83     cmdsize:         64
84     dylib:
85       name:            24
86       timestamp:       1
87       current_version: 0
88       compatibility_version: 0
89     Content:         '@executable_path/libfixups.dylib'
90     ZeroPadBytes:    8
91   - cmd:             LC_DYLD_CHAINED_FIXUPS
92     cmdsize:         16
93     dataoff:         32768
94     datasize:        88
95   - cmd:             LC_DYLD_EXPORTS_TRIE
96     cmdsize:         16
97     dataoff:         32856
98     datasize:        16
99   - cmd:             LC_SYMTAB
100     cmdsize:         24
101     symoff:          32880
102     nsyms:           2
103     stroff:          32912
104     strsize:         16
105   - cmd:             LC_DYSYMTAB
106     cmdsize:         80
107     ilocalsym:       0
108     nlocalsym:       0
109     iextdefsym:      0
110     nextdefsym:      1
111     iundefsym:       1
112     nundefsym:       1
113     tocoff:          0
114     ntoc:            0
115     modtaboff:       0
116     nmodtab:         0
117     extrefsymoff:    0
118     nextrefsyms:     0
119     indirectsymoff:  0
120     nindirectsyms:   0
121     extreloff:       0
122     nextrel:         0
123     locreloff:       0
124     nlocrel:         0
125   - cmd:             LC_UUID
126     cmdsize:         24
127     uuid:            56F7BCE0-C1A7-38E3-A90D-742D8E3D5FA9
128   - cmd:             LC_BUILD_VERSION
129     cmdsize:         32
130     platform:        2
131     minos:           983296
132     sdk:             983552
133     ntools:          1
134     Tools:
135       - tool:            3
136         version:         46596096
137   - cmd:             LC_SOURCE_VERSION
138     cmdsize:         16
139     version:         0
140   - cmd:             LC_ENCRYPTION_INFO_64
141     cmdsize:         24
142     cryptoff:        16384
143     cryptsize:       0
144     cryptid:         0
145     pad:             0
146   - cmd:             LC_LOAD_DYLIB
147     cmdsize:         56
148     dylib:
149       name:            24
150       timestamp:       2
151       current_version: 0
152       compatibility_version: 0
153     Content:         '@executable_path/liba.dylib'
154     ZeroPadBytes:    5
155   - cmd:             LC_LOAD_DYLIB
156     cmdsize:         56
157     dylib:
158       name:            24
159       timestamp:       2
160       current_version: 85917696
161       compatibility_version: 65536
162     Content:         '/usr/lib/libSystem.B.dylib'
163     ZeroPadBytes:    6
164   - cmd:             LC_FUNCTION_STARTS
165     cmdsize:         16
166     dataoff:         32872
167     datasize:        8
168   - cmd:             LC_DATA_IN_CODE
169     cmdsize:         16
170     dataoff:         32880
171     datasize:        0
172 __LINKEDIT:      0000000020000000480000004C000000010000000100000000000000000000000300000000000000100000000000000018000000004006000040000000000000000000000100000001020000005F6578740000000000000000015F700006040080800100000000000000000000000000020000000F02000000400000000000000500000001000001000000000000000020005F70005F65787400000000000000