Force the MachO generated for Darwin to have VERSION_MIN load command
authorSteven Wu <stevenwu@apple.com>
Wed, 5 Aug 2015 15:36:38 +0000 (15:36 +0000)
committerSteven Wu <stevenwu@apple.com>
Wed, 5 Aug 2015 15:36:38 +0000 (15:36 +0000)
commit6277e1f6627bcaa7883c6cb355fe8786127c4f14
tree4a8e818f48cc82445a7fe3f74dd38fb18a1be45d
parent9ef4c12777966a5d6d5a2946b63231fc9ae66994
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244059 91177308-0d34-0410-b5e6-96231b3b80d8
41 files changed:
lib/MC/MCMachOStreamer.cpp
test/MC/MachO/ARM/darwin-ARM-reloc.s
test/MC/MachO/ARM/darwin-Thumb-reloc.s
test/MC/MachO/absolute.s
test/MC/MachO/absolutize.s
test/MC/MachO/comm-1.s
test/MC/MachO/darwin-complex-difference.s
test/MC/MachO/darwin-version-min-load-command.s [new file with mode: 0644]
test/MC/MachO/darwin-x86_64-diff-relocs.s
test/MC/MachO/darwin-x86_64-nobase-relocs.s
test/MC/MachO/darwin-x86_64-reloc-offsets.s
test/MC/MachO/data.s
test/MC/MachO/diff-with-two-sections.s
test/MC/MachO/direction_labels.s
test/MC/MachO/file.s
test/MC/MachO/indirect-symbols.s
test/MC/MachO/jcc.s
test/MC/MachO/lcomm-attributes.s
test/MC/MachO/linker-option-2.s
test/MC/MachO/loc.s
test/MC/MachO/pcrel-to-other-section.s
test/MC/MachO/relax-recompute-align.s
test/MC/MachO/section-align-1.s
test/MC/MachO/section-align-2.s
test/MC/MachO/string-table.s
test/MC/MachO/symbol-diff.s
test/MC/MachO/symbol-flags.s
test/MC/MachO/symbol-indirect.s
test/MC/MachO/symbols-1.s
test/MC/MachO/temp-labels.s
test/MC/MachO/values.s
test/MC/MachO/variable-exprs.s
test/MC/MachO/weakdef.s
test/MC/MachO/x86_32-optimal_nop.s
test/MC/MachO/x86_32-sections.s
test/MC/MachO/x86_32-symbols.s
test/MC/MachO/x86_64-sections.s
test/MC/MachO/zerofill-1.s
test/MC/MachO/zerofill-2.s
test/MC/MachO/zerofill-3.s
test/MC/MachO/zerofill-5.s