1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/MachO/linker-option-2.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

26 lines
594 B
ArmAsm

// RUN: llvm-mc -n -triple x86_64-apple-darwin10 %s -filetype=obj | macho-dump | FileCheck %s
// CHECK: ('load_commands_size', 120)
// CHECK: ('load_commands', [
// CHECK: # Load Command 2
// CHECK: (('command', 45)
// CHECK: ('size', 16)
// CHECK: ('count', 1)
// CHECK: ('_strings', [
// CHECK: "a",
// CHECK: ])
// CHECK: ),
// CHECK: # Load Command 3
// CHECK: (('command', 45)
// CHECK: ('size', 16)
// CHECK: ('count', 2)
// CHECK: ('_strings', [
// CHECK: "a",
// CHECK: "b",
// CHECK: ])
// CHECK: ),
// CHECK: ])
.linker_option "a"
.linker_option "a", "b"