Set CPU_SUBTYPE_LIB64 in mach_header.
authorPete Cooper <peter_cooper@apple.com>
Thu, 4 Feb 2016 20:43:43 +0000 (20:43 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 4 Feb 2016 20:43:43 +0000 (20:43 +0000)
commit8563e5a362c742bb5f777d1df1d82058991644cb
tree0cb74fb8b917ad8cb84f16af7b94f5931e822821
parent4de5cb8aef523d9aebeff01759ef35f545e54168
Set CPU_SUBTYPE_LIB64 in mach_header.

On Mac OS 10.5 and later, with X86_64 and outputting a dynamic executable,
ld64 set the CPU_SUBTYPE_LIB64 mask on the cpusubtype in the mach_header.

This adds the same functionality to lld.

rdar://problem/24507177

llvm-svn: 259826
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lld/test/mach-o/mach_header-cpusubtype.yaml [new file with mode: 0644]