1 // RUN: llvm-objdump -p %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s
2 // RUN: llvm-objdump -p %p/Inputs/hello.exe.macho-aarch64 \
3 // RUN: | FileCheck %s -check-prefix=EXE
6 CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
7 CHECK: MH_MAGIC_64 ARM64 ALL 0x00 OBJECT 4 352 SUBSECTIONS_VIA_SYMBOLS
9 CHECK: cmd LC_SEGMENT_64
12 CHECK: vmaddr 0x0000000000000000
13 CHECK: vmsize 0x000000000000004d
21 CHECK: sectname __text
23 CHECK: addr 0x0000000000000000
24 CHECK: size 0x0000000000000040
30 CHECK: attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
34 CHECK: sectname __cstring
36 CHECK: addr 0x0000000000000040
37 CHECK: size 0x000000000000000d
42 CHECK: type S_CSTRING_LITERALS
43 CHECK: attributes (none)
47 CHECK: cmd LC_VERSION_MIN_IPHONEOS
59 CHECK: cmd LC_DYSYMTAB
73 CHECK: indirectsymoff 0
74 CHECK: nindirectsyms 0
81 EXE: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
82 EXE: MH_MAGIC_64 ARM64 ALL 0x00 EXECUTE 17 1240 NOUNDEFS DYLDLINK TWOLEVEL PIE
84 EXE: cmd LC_SEGMENT_64
86 EXE: segname __PAGEZERO
87 EXE: vmaddr 0x0000000000000000
88 EXE: vmsize 0x0000000100000000
96 EXE: cmd LC_SEGMENT_64
99 EXE: vmaddr 0x0000000100000000
100 EXE: vmsize 0x0000000000008000
110 EXE: addr 0x0000000100007f38
111 EXE: size 0x0000000000000040
117 EXE: attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
121 EXE: sectname __stubs
123 EXE: addr 0x0000000100007f78
124 EXE: size 0x000000000000000c
129 EXE: type S_SYMBOL_STUBS
130 EXE: attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
131 EXE: reserved1 0 (index into indirect symbol table)
132 EXE: reserved2 12 (size of stubs)
134 EXE: sectname __stub_helper
136 EXE: addr 0x0000000100007f84
137 EXE: size 0x0000000000000024
143 EXE: attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
147 EXE: sectname __cstring
149 EXE: addr 0x0000000100007fa8
150 EXE: size 0x000000000000000d
155 EXE: type S_CSTRING_LITERALS
156 EXE: attributes (none)
160 EXE: sectname __unwind_info
162 EXE: addr 0x0000000100007fb8
163 EXE: size 0x0000000000000048
169 EXE: attributes (none)
173 EXE: cmd LC_SEGMENT_64
176 EXE: vmaddr 0x0000000100008000
177 EXE: vmsize 0x0000000000004000
187 EXE: addr 0x0000000100008000
188 EXE: size 0x0000000000000010
193 EXE: type S_NON_LAZY_SYMBOL_POINTERS
194 EXE: attributes (none)
195 EXE: reserved1 1 (index into indirect symbol table)
198 EXE: sectname __la_symbol_ptr
200 EXE: addr 0x0000000100008010
201 EXE: size 0x0000000000000008
206 EXE: type S_LAZY_SYMBOL_POINTERS
207 EXE: attributes (none)
208 EXE: reserved1 3 (index into indirect symbol table)
211 EXE: cmd LC_SEGMENT_64
213 EXE: segname __LINKEDIT
214 EXE: vmaddr 0x000000010000c000
215 EXE: vmsize 0x0000000000004000
223 EXE: cmd LC_DYLD_INFO_ONLY
225 EXE: rebase_off 49152
230 EXE: weak_bind_size 0
231 EXE: lazy_bind_off 49184
232 EXE: lazy_bind_size 16
233 EXE: export_off 49200
257 EXE: indirectsymoff 49344
264 EXE: cmd LC_LOAD_DYLINKER
266 EXE: name /usr/lib/dyld (offset 12)
270 EXE: uuid D687F888-CD3F-3276-8C94-BA3CCA21D820
272 EXE: cmd LC_VERSION_MIN_IPHONEOS
277 EXE: cmd LC_SOURCE_VERSION
286 EXE: cmd LC_ENCRYPTION_INFO_64
293 EXE: cmd LC_LOAD_DYLIB
295 EXE: name /usr/lib/libSystem.B.dylib (offset 24)
296 EXE: current version 1215.0.0
297 EXE: compatibility version 1.0.0
299 EXE: cmd LC_FUNCTION_STARTS
304 EXE: cmd LC_DATA_IN_CODE
309 EXE: cmd LC_DYLIB_CODE_SIGN_DRS