aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-objdump/MachO/maccatalyst-build-version.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objdump/MachO/maccatalyst-build-version.yaml')
-rw-r--r--llvm/test/tools/llvm-objdump/MachO/maccatalyst-build-version.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/MachO/maccatalyst-build-version.yaml b/llvm/test/tools/llvm-objdump/MachO/maccatalyst-build-version.yaml
new file mode 100644
index 000000000000..b143aea31fab
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/MachO/maccatalyst-build-version.yaml
@@ -0,0 +1,54 @@
+# RUN: yaml2obj %s | llvm-objdump -macho -private-headers - | FileCheck %s
+
+--- !mach-o
+FileHeader:
+ magic: 0xFEEDFACF
+ cputype: 0x01000007
+ cpusubtype: 0x00000003
+ filetype: 0x00000004
+ ncmds: 2
+ sizeofcmds: 192
+ flags: 0x00000000
+ reserved: 0
+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_BUILD_VERSION
+ cmdsize: 32
+ platform: 6
+ minos: 0x000D0000
+ sdk: 0x00090000
+ ntools: 1
+ Tools:
+ - tool: 1
+ version: 0x00000000
+...
+
+CHECK: Load command 1
+CHECK-NEXT: cmd LC_BUILD_VERSION
+CHECK-NEXT: cmdsize 32
+CHECK-NEXT: platform macCatalyst
+CHECK-NEXT: sdk 9.0
+CHECK-NEXT: minos 13.0