• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Show that llvm-size can print Mach-O files using berkeley-style output.
2
3# RUN: yaml2obj %s -o %t
4# RUN: llvm-size %t -B \
5# RUN:   | FileCheck %s --implicit-check-not={{.}} --strict-whitespace
6
7# CHECK:      __TEXT	__DATA	__OBJC	others	dec	hex
8# CHECK-NEXT: 4	8	0	0	12	c	{{$}}
9
10--- !mach-o
11FileHeader:
12  magic:      0xFEEDFACE
13  cputype:    0x0000000C
14  cpusubtype: 0x00000009
15  filetype:   0x00000001
16  ncmds:      1
17  sizeofcmds: 192
18  flags:      0x00000000
19LoadCommands:
20  - cmd:      LC_SEGMENT
21    cmdsize:  192
22    segname:  ''
23    vmaddr:   0
24    vmsize:   12
25    fileoff:  220
26    filesize: 12
27    maxprot:  7
28    initprot: 7
29    nsects:   2
30    flags:    0
31    Sections:
32      - sectname:  __text
33        segname:   __TEXT
34        addr:      0x0000000000000000
35        size:      4
36        offset:    0x000000DC
37        align:     0
38        reloff:    0x00000000
39        nreloc:    0
40        flags:     0x80000000
41        reserved1: 0x00000000
42        reserved2: 0x00000000
43        reserved3: 0x00000000
44      - sectname:  __data
45        segname:   __DATA
46        addr:      0x0000000000000004
47        size:      8
48        offset:    0x000000E0
49        align:     0
50        reloff:    0x00000000
51        nreloc:    0
52        flags:     0x00000000
53        reserved1: 0x00000000
54        reserved2: 0x00000000
55        reserved3: 0x00000000
56