1 ## Check that removing load commands updates the indexes of special LCs:
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-install-name-tool -delete_rpath @executable_a/. %t
5 # RUN: llvm-objdump -p %t | FileCheck %s --check-prefix=INDEX
7 # INDEX: Load command 3
8 # INDEX-NEXT: cmd LC_DYLD_INFO_ONLY
9 # INDEX: Load command 5
10 # INDEX-NEXT: cmd LC_DATA_IN_CODE
11 # INDEX: Load command 8
12 # INDEX-NEXT: cmd LC_FUNCTION_STARTS
13 # INDEX: Load command 13
14 # INDEX-NEXT: cmd LC_DYSYMTAB
15 # INDEX: Load command 14
16 # INDEX-NEXT: cmd LC_SYMTAB
22 cpusubtype: 0x80000003
54 addr: 0x0000000100000F90
64 - sectname: __unwind_info
66 addr: 0x0000000100000FB4
90 addr: 0x0000000100001000
102 addr: 0x0000000100001004
109 reserved1: 0x00000000
110 reserved2: 0x00000000
111 reserved3: 0x00000000
115 Content: '@executable_a/.'
116 - cmd: LC_DYLD_INFO_ONLY
139 - cmd: LC_DATA_IN_CODE
143 - cmd: LC_LOAD_DYLINKER
146 Content: '/usr/lib/dyld'
150 uuid: 56D84164-1DA8-393B-8589-BC4C6B56168E
151 - cmd: LC_FUNCTION_STARTS
155 - cmd: LC_BUILD_VERSION
164 - cmd: LC_SOURCE_VERSION
176 current_version: 82115073
177 compatibility_version: 65536
178 Content: '/usr/lib/libSystem.B.dylib'
211 Flags: 0x0000000000000000
212 Address: 0x0000000000000000
213 Other: 0x0000000000000000
219 Flags: 0x0000000000000000
220 Address: 0x0000000000000000
221 Other: 0x0000000000000000
226 Name: _mh_execute_header
227 Flags: 0x0000000000000000
228 Address: 0x0000000000000000
229 Other: 0x0000000000000000
234 Flags: 0x0000000000000000
235 Address: 0x0000000000000F90
236 Other: 0x0000000000000000
241 Flags: 0x0000000000000000
242 Address: 0x0000000000001004
243 Other: 0x0000000000000000
286 ## A local undefined SymDebugTable entry followed by
292 ## a defined SymDebugTable entry.
325 - __mh_execute_header
329 - '/Users/anonymous/llvm-project/llvm/build/'
331 - '/var/folders/g7/l0p5czpd2jz6w0gswg6cwgjc0000gn/T/strip-95c4bf.o'