mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
fe6a3c2668
This also teaches MachO writers/readers about the MachO cpu subtype, beyond the minimal subtype reader support present at the moment. This also defines a preprocessor macro to allow users to distinguish __arm64__ from __arm64e__. arm64e defaults to an "apple-a12" CPU, which supports v8.3a, allowing pointer-authentication codegen. It also currently defaults to ios14 and macos11. Differential Revision: https://reviews.llvm.org/D87095
18 lines
437 B
Plaintext
18 lines
437 B
Plaintext
# RUN: yaml2obj %s -o %t.o
|
|
# RUN: llvm-readobj -h %t.o | FileCheck %s
|
|
|
|
# CHECK: Magic: Magic64 (0xFEEDFACF)
|
|
# CHECK: CpuType: Arm64 (0x100000C)
|
|
# CHECK: CpuSubType: CPU_SUBTYPE_ARM64E (0x2)
|
|
|
|
--- !mach-o
|
|
FileHeader:
|
|
magic: 0xFEEDFACF
|
|
cputype: 0x0100000C
|
|
cpusubtype: 0x00000002
|
|
filetype: 0x00000001
|
|
ncmds: 0
|
|
sizeofcmds: 0
|
|
flags: 0x00000000
|
|
reserved: 0x00000000
|