]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/mach-o/parse-section-no-symbol.yaml
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / mach-o / parse-section-no-symbol.yaml
1 # RUN: lld -flavor darwin -arch x86_64 -r %s -print_atoms -o %t2 | FileCheck %s
2 #
3 # Test parsing of mach-o functions with no symbols at all.
4 #
5
6 --- !mach-o
7 arch:            x86_64
8 file-type:       MH_OBJECT
9 flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
10 has-UUID:        false
11 OS:              unknown
12 sections:
13   - segment:         __TEXT
14     section:         __text
15     type:            S_REGULAR
16     attributes:      [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
17     alignment:       4
18     address:         0x0000000000000000
19     content:         [ 0xCC ]
20 ...
21
22 # CHECK-NOT:  name:
23 # CHECK:      content:         [ CC ]