• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objdump --macho --reloc %t | FileCheck %s --check-prefix=OBJDUMP-VERIFY
3
4# OBJDUMP-VERIFY-NOT: Relocation information
5
6# RUN: obj2yaml %t | FileCheck %s
7
8# CHECK:    Sections:
9# CHECK-NEXT:      - sectname:        __text
10# CHECK-NEXT:        segname:         __TEXT
11# CHECK-NEXT:        addr:            0x0
12# CHECK-NEXT:        size:            0
13# CHECK-NEXT:        offset:          0xC8
14# CHECK-NEXT:        align:           0
15# CHECK-NEXT:        reloff:          0x0
16# CHECK-NEXT:        nreloc:          0
17# CHECK-NEXT:        flags:           0x80000000
18# CHECK-NEXT:        reserved1:       0x0
19# CHECK-NEXT:        reserved2:       0x0
20# CHECK-NEXT:        reserved3:       0x0
21# CHECK-NEXT:        content:         ''
22# CHECK-NOT:         relocations:
23
24--- !mach-o
25FileHeader:
26  magic:           0xFEEDFACF
27  cputype:         0x01000007
28  cpusubtype:      0x00000003
29  filetype:        0x00000001
30  ncmds:           2
31  sizeofcmds:      168
32  flags:           0x00002000
33  reserved:        0x00000000
34LoadCommands:
35  - cmd:             LC_SEGMENT_64
36    cmdsize:         152
37    segname:         ''
38    vmaddr:          0
39    vmsize:          0
40    fileoff:         200
41    filesize:        0
42    maxprot:         7
43    initprot:        7
44    nsects:          1
45    flags:           0
46    Sections:
47      - sectname:        __text
48        segname:         __TEXT
49        addr:            0x0000000000000000
50        size:            0
51        offset:          0x000000C8
52        align:           0
53        reloff:          0x00000000
54        nreloc:          0
55        flags:           0x80000000
56        reserved1:       0x00000000
57        reserved2:       0x00000000
58        reserved3:       0x00000000
59        content:         ''
60        relocations:     []
61  - cmd:             LC_VERSION_MIN_MACOSX
62    cmdsize:         16
63    version:         658944
64    sdk:             0
65...
66