summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/MachO/note_command.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/ObjectYAML/MachO/note_command.yaml')
-rw-r--r--llvm/test/ObjectYAML/MachO/note_command.yaml50
1 files changed, 50 insertions, 0 deletions
diff --git a/llvm/test/ObjectYAML/MachO/note_command.yaml b/llvm/test/ObjectYAML/MachO/note_command.yaml
new file mode 100644
index 00000000000..17f1a970bff
--- /dev/null
+++ b/llvm/test/ObjectYAML/MachO/note_command.yaml
@@ -0,0 +1,50 @@
+# RUN: yaml2obj %s | obj2yaml | FileCheck %s
+
+--- !mach-o
+FileHeader:
+ magic: 0xFEEDFACE
+ cputype: 0x00000007
+ cpusubtype: 0x00000003
+ filetype: 0x00000004
+ ncmds: 2
+ sizeofcmds: 192
+ flags: 0x00000000
+LoadCommands:
+ - cmd: LC_SEGMENT_64
+ cmdsize: 152
+ segname: __TEXT
+ vmaddr: 4294967296
+ vmsize: 8192
+ fileoff: 0
+ filesize: 3099
+ maxprot: 7
+ initprot: 5
+ nsects: 1
+ flags: 0
+ Sections:
+ - sectname: __text
+ segname: __TEXT
+ addr: 0x0000000100001160
+ size: 3099
+ offset: 0x00001160
+ align: 4
+ reloff: 0x00000000
+ nreloc: 0
+ flags: 0x80000400
+ reserved1: 0x00000000
+ reserved2: 0x00000000
+ reserved3: 0x00000000
+ - cmd: LC_NOTE
+ cmdsize: 40
+ data_owner: DATA OWNER
+ offset: 220
+ size: 8
+...
+
+
+#CHECK: LoadCommands:
+#CHECK: - cmd: LC_NOTE
+#CHECK_NEXT: cmdsize: 40
+#CHECK_NEXT: data_owner: DATA OWNER
+#CHECK_NEXT: offset: 220
+#CHECK_NEXT: size: 8
OpenPOWER on IntegriCloud