[lld] r234378 - Allow undefined symbols in shared library by default.
Davide Italiano
davide at freebsd.org
Tue Apr 7 18:00:19 PDT 2015
Author: davide
Date: Tue Apr 7 20:00:19 2015
New Revision: 234378
URL: http://llvm.org/viewvc/llvm-project?rev=234378&view=rev
Log:
Allow undefined symbols in shared library by default.
It's not our business to resolve those undefined symbols.
We just trust the linker will load the library and its dependencies
correctly, which is actually what happens, modulo bugs in the dynamic
linker itself.
PR: 23035
Differential Revision: http://reviews.llvm.org/D8886
Modified:
lld/trunk/lib/Core/LinkingContext.cpp
Modified: lld/trunk/lib/Core/LinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/LinkingContext.cpp?rev=234378&r1=234377&r2=234378&view=diff
==============================================================================
--- lld/trunk/lib/Core/LinkingContext.cpp (original)
+++ lld/trunk/lib/Core/LinkingContext.cpp Tue Apr 7 20:00:19 2015
@@ -24,7 +24,7 @@ LinkingContext::LinkingContext()
_warnIfCoalesableAtomsHaveDifferentCanBeNull(false),
_warnIfCoalesableAtomsHaveDifferentLoadName(false),
_printRemainingUndefines(true), _allowRemainingUndefines(false),
- _logInputFiles(false), _allowShlibUndefines(false),
+ _logInputFiles(false), _allowShlibUndefines(true),
_outputFileType(OutputFileType::Default), _nextOrdinal(0) {}
LinkingContext::~LinkingContext() {}
More information about the llvm-commits
mailing list