This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Remove partially supported 32-bit ARM arch
ClosedPublic

Authored by thevinster on May 15 2023, 2:01 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rGed59b8a11c89: [lld-macho] Remove partially supported 32-bit ARM arch
Summary

We never really supported 32-bit ARM arch entirely, and partial support was added for
very specific features. Regardless, it fails to even link the most basic applications that at
this point, it might be better to move this arch as unsupported. Given that Apple will be
moving towards arm64 long term, I don't see any reason for anyone to invest time in
supporting this either, and for those who still need it should use apple's ld64 linker.

Fixes #62691

Diff Detail

Event Timeline

thevinster created this revision.May 15 2023, 2:01 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 15 2023, 2:01 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
thevinster published this revision for review.May 15 2023, 2:06 AM
thevinster edited the summary of this revision. (Show Details)
thevinster edited the summary of this revision. (Show Details)
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2023, 2:07 AM
int3 accepted this revision.May 15 2023, 10:12 AM
int3 added a subscriber: int3.

Thanks :D

This revision is now accepted and ready to land.May 15 2023, 10:12 AM
int3 added inline comments.May 15 2023, 10:14 AM
lld/test/MachO/weak-def-thumb-conflict.s
8

hmm, should we delete the logic around N_ARM_THUMB_DEF in InputFiles.cpp as well? maybe just add an assert that checks that the flag isn't set on any n_desc

Remove thumb field. Assert N_ARM_THUMB_DEF flag not set.

thevinster marked an inline comment as done.May 15 2023, 2:13 PM
int3 added inline comments.May 17 2023, 9:52 AM
lld/MachO/ConcatOutputSection.cpp
343–344

could you run clang-format before landing? I think this can be reflowed

barannikov88 added inline comments.
lld/MachO/ConcatOutputSection.cpp
343–344

FWIW From my experience, clang-format does not join lines with argument comments.
A workaround is to join them manually (possibly exceeding column limit), then reformat.

thevinster marked 2 inline comments as done.May 20 2023, 1:04 PM
This revision was automatically updated to reflect the committed changes.
lld/test/MachO/arm-branch-relocs.s