summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2015-02-06 04:15:00 +0000
committerShankar Easwaran <shankare@codeaurora.org>2015-02-06 04:15:00 +0000
commite315edd74790d99f2abed6090f707850de984ecb (patch)
tree7936af9939d93bbca3377e110d7d10a7ed9475f3 /lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
parenta78607725320842532be7712894ab2c4db09a335 (diff)
downloadbcm5719-llvm-e315edd74790d99f2abed6090f707850de984ecb.tar.gz
bcm5719-llvm-e315edd74790d99f2abed6090f707850de984ecb.zip
[ELF] Fix -nostdlib option.
Only search library directories explicitly specified on the command line. Library directories specified in linker scripts (including linker scripts specified on the command line) are ignored. llvm-svn: 228375
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
index db601430fc0..e45b17fbbd7 100644
--- a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
@@ -61,8 +61,8 @@ ELFLinkingContext::ELFLinkingContext(
_mergeCommonStrings(false), _useShlibUndefines(true),
_dynamicLinkerArg(false), _noAllowDynamicLibraries(false),
_mergeRODataToTextSegment(true), _demangle(true), _alignSegments(true),
- _outputMagic(OutputMagic::DEFAULT), _initFunction("_init"),
- _finiFunction("_fini"), _sysrootPath("") {}
+ _nostdlib(false), _outputMagic(OutputMagic::DEFAULT),
+ _initFunction("_init"), _finiFunction("_fini"), _sysrootPath("") {}
void ELFLinkingContext::addPasses(PassManager &pm) {
pm.add(std::unique_ptr<Pass>(new elf::OrderPass()));
OpenPOWER on IntegriCloud