Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-objdump / X86 / macho-build-version.yaml
blobef70774b56a5f5d1bd2c26ec84ea82ccb0ee828f
1 # RUN: yaml2obj %s | llvm-objdump -macho -private-headers - | FileCheck %s
3 --- !mach-o
4 FileHeader:
5   magic:           0xFEEDFACF
6   cputype:         0x01000007
7   cpusubtype:      0x00000003
8   filetype:        0x00000004
9   ncmds:           2
10   sizeofcmds:      192
11   flags:           0x00000000
12   reserved:        0
13 LoadCommands:
14   - cmd:             LC_SEGMENT_64
15     cmdsize:         152
16     segname:         __TEXT
17     vmaddr:          4294967296
18     vmsize:          8192
19     fileoff:         0
20     filesize:        3099
21     maxprot:         7
22     initprot:        5
23     nsects:          1
24     flags:           0
25     Sections:
26       - sectname:        __text
27         segname:         __TEXT
28         addr:            0x0000000100001160
29         size:            3099
30         offset:          0x00001160
31         align:           4
32         reloff:          0x00000000
33         nreloc:          0
34         flags:           0x80000400
35         reserved1:       0x00000000
36         reserved2:       0x00000000
37         reserved3:       0x00000000
38   - cmd:             LC_BUILD_VERSION
39     cmdsize:         32
40     platform:        2
41     minos:           0x00080000
42     sdk:             0x00090000
43     ntools:          1
44     Tools:
45       - tool:        1
46         version:     0x00000000
47 ...
49 CHECK: Load command 1
50 CHECK-NEXT:       cmd LC_BUILD_VERSION
51 CHECK-NEXT:   cmdsize 32
52 CHECK-NEXT:  platform ios
53 CHECK-NEXT:       sdk 9.0
54 CHECK-NEXT:     minos 8.0
55 CHECK-NEXT:    ntools 1
56 CHECK-NEXT:      tool clang
57 CHECK-NEXT:   version 0.0