llvm-mirror/test/MC/MachO/darwin-version-min-load-command.s
Steven Wu 315fa847c3 Force the MachO generated for Darwin to have VERSION_MIN load command
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.

llvm-svn: 244059
2015-08-05 15:36:38 +00:00

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