This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Fix min version check
ClosedPublic

Authored by int3 on Apr 22 2021, 2:58 PM.

Details

Summary

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.

Diff Detail

Event Timeline

int3 created this revision.Apr 22 2021, 2:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2021, 2:58 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Apr 22 2021, 2:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2021, 2:58 PM
thakis accepted this revision.Apr 22 2021, 3:13 PM
thakis added a subscriber: thakis.

:)

Maybe mention the PR this fixes in the commit msg

This revision is now accepted and ready to land.Apr 22 2021, 3:13 PM
int3 edited the summary of this revision. (Show Details)Apr 22 2021, 3:24 PM
This revision was landed with ongoing or failed builds.Apr 22 2021, 3:26 PM
This revision was automatically updated to reflect the committed changes.
int3 added a comment.Apr 22 2021, 4:37 PM

I goofed and forgot to run the rest of the test suite before landing. Turns out we had silent version mismatches everywhere. I've temporarily made our tests target the older version in rG8c17a875150f8e736e8f9061ddf084397f45f4c5, but will follow up with a diff to make everything just target a modern version instead.