This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Add option for ld64 autolink behavior
AbandonedPublic

Authored by keith on Dec 16 2022, 12:32 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Summary

By default ld64 ignores invalid LC_LINKER_OPTION warnings unless the
link fails at which point it prints them. This adds that same behavior
behind --ignore-auto-link-options. We could flip this on by default
matching ld64 but it allows these issues to go in unnoticed. At the very
least this option allows folks who have existing violations of this
that are not easy to fix to use lld.

Diff Detail