mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 07:50:50 +00:00
6277e1f662
On Darwin, it is required to stamp the object file with VERSION_MIN load command. This commit will provide a VERSRION_MIN load command to the MachO file that doesn't specify the version itself by inferring from Target Triple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244059 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
794 B
ArmAsm
15 lines
794 B
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-macosx10.10.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s
|
|
// RUN: llvm-mc -triple x86_64-apple-ios8.0.0 %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-IOS
|
|
// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-objdump -macho -private-headers - | FileCheck %s --check-prefix=CHECK-DARWIN
|
|
|
|
// Test version-min load command should be inferred from triple and should always be generated on Darwin
|
|
// CHECK: cmd LC_VERSION_MIN_MACOSX
|
|
// CHECK-NEXT: cmdsize 16
|
|
// CHECK-NEXT: version 10.10
|
|
|
|
// CHECK-IOS: cmd LC_VERSION_MIN_IPHONEOS
|
|
// CHECK-IOS-NEXT: cmdsize 16
|
|
// CHECK-IOS-NEXT: version 8.0
|
|
|
|
// CHECK-DARWIN-NOT: LC_VERSION_MIN
|