xref: /llvm-project/lld/test/MachO/Inputs/lto-obj-weak-def.yaml (revision b35e0d0cf355426031101c743d2ba80af79c06ac)
1--- !mach-o
2FileHeader:
3  magic:           0xFEEDFACF
4  cputype:         0x1000007
5  cpusubtype:      0x3
6  filetype:        0x1
7  ncmds:           3
8  sizeofcmds:      352
9  flags:           0x0
10  reserved:        0x0
11LoadCommands:
12  - cmd:             LC_SEGMENT_64
13    cmdsize:         312
14    segname:         ''
15    vmaddr:          0
16    vmsize:          96
17    fileoff:         416
18    filesize:        96
19    maxprot:         7
20    initprot:        7
21    nsects:          3
22    flags:           0
23    Sections:
24      - sectname:        __text
25        segname:         __TEXT
26        addr:            0x0
27        size:            1
28        offset:          0x1A0
29        align:           0
30        reloff:          0x0
31        nreloc:          0
32        flags:           0x80000400
33        reserved1:       0x0
34        reserved2:       0x0
35        reserved3:       0x0
36        content:         C3
37      - sectname:        __eh_frame
38        segname:         __TEXT
39        addr:            0x8
40        size:            56
41        offset:          0x1A8
42        align:           3
43        reloff:          0x200
44        nreloc:          4
45        flags:           0x0
46        reserved1:       0x0
47        reserved2:       0x0
48        reserved3:       0x0
49        content:         1400000000000000017A520001781001100C0708900100001C00000004000000F8FFFFFFFFFFFFFF0100000000000000000E080000000000
50        relocations:
51          - address:         0x1C
52            symbolnum:       0
53            pcrel:           false
54            length:          2
55            extern:          true
56            type:            5
57            scattered:       false
58            value:           0
59          - address:         0x1C
60            symbolnum:       1
61            pcrel:           false
62            length:          2
63            extern:          true
64            type:            0
65            scattered:       false
66            value:           0
67          - address:         0x20
68            symbolnum:       1
69            pcrel:           false
70            length:          3
71            extern:          true
72            type:            5
73            scattered:       false
74            value:           0
75          - address:         0x20
76            symbolnum:       2
77            pcrel:           false
78            length:          3
79            extern:          true
80            type:            0
81            scattered:       false
82            value:           0
83      - sectname:        __compact_unwind
84        segname:         __LD
85        addr:            0x40
86        size:            32
87        offset:          0x1E0
88        align:           3
89        reloff:          0x220
90        nreloc:          1
91        flags:           0x2000000
92        reserved1:       0x0
93        reserved2:       0x0
94        reserved3:       0x0
95        content:         '0000000000000000010000000000000400000000000000000000000000000000'
96        relocations:
97          - address:         0x0
98            symbolnum:       2
99            pcrel:           false
100            length:          3
101            extern:          true
102            type:            0
103            scattered:       false
104            value:           0
105  - cmd:             LC_SYMTAB
106    cmdsize:         24
107    symoff:          552
108    nsyms:           3
109    stroff:          600
110    strsize:         32
111  - cmd:             LC_DATA_IN_CODE
112    cmdsize:         16
113    dataoff:         552
114    datasize:        0
115LinkEditData:
116  NameList:
117    - n_strx:          7
118      n_type:          0xE
119      n_sect:          2
120      n_desc:          0
121      n_value:         8
122    - n_strx:          17
123      n_type:          0xE
124      n_sect:          2
125      n_desc:          0
126      n_value:         32
127    - n_strx:          2
128      n_type:          0xF
129      n_sect:          1
130      n_desc:          160
131      n_value:         0
132  StringTable:
133    - ' '
134    - _foo
135    - EH_Frame1
136    - func.eh
137    - ''
138    - ''
139    - ''
140    - ''
141    - ''
142    - ''
143    - ''
144...
145