Generate version min load commands when the platform is unknown.
authorPete Cooper <peter_cooper@apple.com>
Thu, 4 Feb 2016 02:16:08 +0000 (02:16 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 4 Feb 2016 02:16:08 +0000 (02:16 +0000)
commitceee5de088f3b644c4040145e1ed1242ef9ca9fa
tree6b38f9c86fb64dc85f14a1054e8fb0b72840fa86
parent2b9be250660eaf563fc9a3520363b7f19569daf1
Generate version min load commands when the platform is unknown.

In the case where we are emitting to an object file, the platform is
possibly unknown, and the source object files contained load commands
for version min, we can take the maximum of those min versions and
emit in in the output object file.

This test also tests r259739.

llvm-svn: 259742
lld/lib/ReaderWriter/MachO/File.h
lld/lib/ReaderWriter/MachO/MachONormalizedFile.h
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
lld/test/mach-o/Inputs/no-version-min-load-command-object.yaml [new file with mode: 0644]
lld/test/mach-o/version-min-load-command-object.yaml [new file with mode: 0644]