[lld][MachO] Add support for LC_VERSION_MIN_* load commands
authorAlexander Shaposhnikov <alexshap@fb.com>
Wed, 21 Apr 2021 12:41:14 +0000 (05:41 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Wed, 21 Apr 2021 12:41:14 +0000 (05:41 -0700)
commit5c835e1ae5e177591ddb64be3f6a473ef6bfa4bb
tree3334469f8045223ca51019ef8fd78ea0bf8d1289
parent8c16c8b7ef7b1bbb1b24a980f30cf07d249dca5f
[lld][MachO] Add support for LC_VERSION_MIN_* load commands

This diff adds initial support for the legacy LC_VERSION_MIN_* load commands.

Test plan: make check-lld-macho

Differential revision: https://reviews.llvm.org/D100523
13 files changed:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/LTO.cpp
lld/MachO/MapFile.cpp
lld/MachO/OutputSegment.cpp
lld/MachO/SyntheticSections.cpp
lld/MachO/Writer.cpp
lld/test/MachO/lc-build-version.s
lld/test/MachO/load-command-sequence.s
lld/test/MachO/local-got.s
lld/test/MachO/x86-64-relocs.s