[PATCH] D140244: [lld-macho] Add option for ld64 autolink behavior
Keith Smiley via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 12:32:51 PST 2022
keith created this revision.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
keith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140244
Files:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/test/MachO/lc-linker-option.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140244.483642.patch
Type: text/x-patch
Size: 5499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221216/86b70d4e/attachment.bin>
More information about the llvm-commits
mailing list