ruiu added a comment. LGTM, but please also fix scanShlibUndefined so that it doesn't automatically make symbols visible if they are referenced by DSOs. That seems like a root cause of the issue. Repository: rLLD LLVM Linker https://reviews.llvm.org/D41524