[PATCH] D57385: [ELF] Support --{,no-}allow-shlib-undefined

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 31 02:31:30 PST 2019


MaskRay added a comment.

  // (A) D57385 will not enable the check ("allow shlib undefined")
  Config->AllowShlibUndefined = Args.hasFlag(OPT_allow_shlib_undefined, OPT_no_allow_shlib_undefined, true);
  
  // (B) In a future change, check errors when linking executables
  Config->AllowShlibUndefined = Args.hasFlag(OPT_allow_shlib_undefined, OPT_no_allow_shlib_undefined, Args.hasFlag(OPT_shared));

I've tested (B) on our (numerous) internal targets and only 0.025% targets fail to build after the (B) change. Most if not all broken targets share the same root cause which is not lld's fault. So I believe (B) is also safe but I'll postpone it to a future change.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57385/new/

https://reviews.llvm.org/D57385





More information about the llvm-commits mailing list