mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 21:50:29 +00:00
6592c09789
build version load commands in the object file This commit introduces a new metadata node called "SDK Version". It will be set by the frontend to mark the platform SDK (macOS/iOS/etc) version which was used during that particular compilation. This node is used when machine code is emitted, by either saving the SDK version into the appropriate macho load command (version min/build version), or by emitting the assembly for these load commands with the SDK version specified as well. The assembly for both load commands is extended by allowing it to contain the sdk_version X, Y [, Z] trailing directive to represent the SDK version respectively. rdar://45774000 Differential Revision: https://reviews.llvm.org/D55612 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349119 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
435 B
ArmAsm
14 lines
435 B
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-macos %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s
|
|
|
|
// Test the formation of the sdk_version component of the version load
|
|
// command in the MachO.
|
|
.build_version macos, 10,13,2 sdk_version 10,14,1
|
|
|
|
// CHECK: MinVersion {
|
|
// CHECK: Cmd: LC_BUILD_VERSION
|
|
// CHECK: Size: 24
|
|
// CHECK: Platform: macos
|
|
// CHECK: Version: 10.13.2
|
|
// CHECK: SDK: 10.14.1
|
|
// CHECK: }
|