[re-land][lld-macho] Fix min version check
authorJez Ng <jezng@fb.com>
Thu, 22 Apr 2021 23:08:04 +0000 (19:08 -0400)
committerJez Ng <jezng@fb.com>
Thu, 22 Apr 2021 23:35:32 +0000 (19:35 -0400)
commit8c17a875150f8e736e8f9061ddf084397f45f4c5
tree7de50a529061451c449b02fa1091328b1cd08aaa
parentb49337bbb9de63e4696cb1fc1d2809d2823ab460
[re-land][lld-macho] Fix min version check

We had got it backwards... the minimum version of the target
should be higher than the min version of the object files, presumably
since new platforms are backwards-compatible with older formats.

Fixes PR50078.

The original commit (aa05439c9cde) broke many tests that had inputs too
new for our target platform (10.0). This commit changes the inputs to
target 10.0, which was the simpler thing to do, but we should really
just have our lit.local.cfg default to targeting 10.15... we're not
likely to ever have proper support for the older versions anyway. I will
follow up with a change to that effect.

Differential Revision: https://reviews.llvm.org/D101114
18 files changed:
lld/MachO/InputFiles.cpp
lld/test/MachO/compact-unwind-generated.test
lld/test/MachO/compact-unwind.s
lld/test/MachO/internalize.ll
lld/test/MachO/invalid/compact-unwind-bad-reloc.s
lld/test/MachO/invalid/compact-unwind-personalities.s
lld/test/MachO/invalid/incompatible-arch.s
lld/test/MachO/invalid/invalid-relocation-length.yaml
lld/test/MachO/invalid/invalid-relocation-pcrel.yaml
lld/test/MachO/lc-linker-option.ll
lld/test/MachO/linkonce.ll
lld/test/MachO/lto-archive.ll
lld/test/MachO/lto-object-path.ll
lld/test/MachO/lto-save-temps.ll
lld/test/MachO/mh-header-link.s
lld/test/MachO/module-asm.ll
lld/test/MachO/t.s
lld/test/MachO/tapi-link-by-arch.s