Skip to content

[ORC] Apply MachO::CPU_SUBTYPE_MASK to comparison in getDylibInterfac… #145154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2025

Conversation

lhames
Copy link
Contributor

@lhames lhames commented Jun 21, 2025

…eFromDylib.

When comparing CPU subtypes from slices in a MachO universal binary we need to apply the MachO::CPU_SUBTYPE_MASK to mask out any flags in the high bits, otherwise we might fail to correctly match a slice and return a spurious "does not contain slice" error.

rdar://153913779

…eFromDylib.

When comparing CPU subtypes from slices in a MachO universal binary we need to
apply the MachO::CPU_SUBTYPE_MASK to mask out any flags in the high bits,
otherwise we might fail to correctly match a slice and return a spurious "does
not contain slice" error.

rdar://153913779
@lhames lhames merged commit d6a486c into llvm:main Jun 21, 2025
8 checks passed
@lhames lhames deleted the rdar153913779 branch June 21, 2025 09:31
Jaddyen pushed a commit to Jaddyen/llvm-project that referenced this pull request Jun 23, 2025
llvm#145154)

…eFromDylib.

When comparing CPU subtypes from slices in a MachO universal binary we
need to apply the MachO::CPU_SUBTYPE_MASK to mask out any flags in the
high bits, otherwise we might fail to correctly match a slice and return
a spurious "does not contain slice" error.

rdar://153913779
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant