[PATCH] D135402: [LLD] Enable --no-undefined-version by default.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 15 18:22:38 PST 2023
MaskRay added a comment.
GNU ld `--no-undefined-version` uses errors, so we'd better not to loosen the diagnostic.
We could have a tri-state that we default to a warning, but that is some code burden on the lld side and we need very strong arguments to support that.
For distributions that allow using lld as the default linker, there is actually a very straightforward workaround for the projects with issues: add `-Wl,--undefined-version` to a Clang configuration file.
(I added support for `--undefined-version` to the just-released GNU ld 2.40. 16.0.0 release will be after it.)
I went through the list on https://github.com/gentoo/gentoo/pull/29097#issuecomment-1383304538 and sent patches to fix some projects or reported bugs.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135402/new/
https://reviews.llvm.org/D135402
More information about the llvm-commits
mailing list