1# RUN: ld64.lld -arch arm64 %s %p/Inputs/hello-world-arm64.yaml -o %t && llvm-objdump --private-headers %t | FileCheck %s 2 3--- !mach-o 4arch: arm64 5file-type: MH_OBJECT 6flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] 7has-UUID: false 8OS: unknown 9sections: 10 - segment: __TEXT 11 section: __text 12 type: S_REGULAR 13 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] 14 address: 0x0000000000000000 15 content: [ 0x00, 0x00 ] 16global-symbols: 17 - name: _main 18 type: N_SECT 19 scope: [ N_EXT ] 20 sect: 1 21 value: 0x0000000000000000 22 - name: start 23 type: N_SECT 24 scope: [ N_EXT ] 25 sect: 1 26 value: 0x0000000000000001 27 28... 29 30# CHECK: Load command 0 31# CHECK: cmd LC_SEGMENT_64 32# CHECK: cmdsize 72 33# CHECK: segname __PAGEZERO 34# CHECK: vmaddr 35# CHECK: vmsize 36# CHECK: fileoff 37# CHECK: filesize 38# CHECK: maxprot --- 39# CHECK: initprot --- 40# CHECK: nsects 0 41# CHECK: flags (none) 42# CHECK: Load command 1 43# CHECK: cmd LC_SEGMENT_64 44# CHECK: cmdsize 152 45# CHECK: segname __TEXT 46# CHECK: vmaddr 47# CHECK: vmsize 48# CHECK: fileoff 49# CHECK: filesize 50# CHECK: maxprot r-x 51# CHECK: initprot r-x 52# CHECK: nsects 1 53# CHECK: flags (none) 54# CHECK: Section 55# CHECK: sectname __text 56# CHECK: segname __TEXT 57# CHECK: addr 58# CHECK: size 59# CHECK: offset 60# CHECK: align 2^0 (1) 61# CHECK: reloff 0 62# CHECK: nreloc 0 63# CHECK: type S_REGULAR 64# CHECK: attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS 65# CHECK: reserved1 0 66# CHECK: reserved2 0 67# CHECK: Load command 2 68# CHECK: cmd LC_SEGMENT_64 69# CHECK: cmdsize 72 70# CHECK: segname __LINKEDIT 71# CHECK: vmaddr 72# CHECK: vmsize 73# CHECK: fileoff 74# CHECK: filesize 75# CHECK: maxprot r-- 76# CHECK: initprot r-- 77# CHECK: nsects 0 78# CHECK: flags (none) 79