summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/DynamicFile.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-02-14 20:32:00 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-02-14 20:32:00 +0000
commitbe03e2a8612c9603f1891703f87869ec8bf32943 (patch)
treeca693f8cf723891522910066a0680ea3a12cec5d /lld/lib/ReaderWriter/ELF/DynamicFile.h
parentdb18847b014dfc0d8d7ee3e5ea16866dba0365c0 (diff)
downloadbcm5719-llvm-be03e2a8612c9603f1891703f87869ec8bf32943.tar.gz
bcm5719-llvm-be03e2a8612c9603f1891703f87869ec8bf32943.zip
[Core,Driver,ELF] Differentiate static and dynamic executables.
This also adds a simple relocation change for dynamic executables to x86-64 ELF. llvm-svn: 175208
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicFile.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/DynamicFile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicFile.h b/lld/lib/ReaderWriter/ELF/DynamicFile.h
index 2e80745bdb1..c513b4e5a9b 100644
--- a/lld/lib/ReaderWriter/ELF/DynamicFile.h
+++ b/lld/lib/ReaderWriter/ELF/DynamicFile.h
@@ -119,8 +119,9 @@ private:
StringRef _soname;
struct SymAtomPair {
- const typename llvm::object::ELFObjectFile<ELFT>::Elf_Sym *_symbol;
- const SharedLibraryAtom *_atom;
+ const typename llvm::object::ELFObjectFile<ELFT>::Elf_Sym *_symbol =
+ nullptr;
+ const SharedLibraryAtom *_atom = nullptr;
};
mutable std::unordered_map<StringRef, SymAtomPair> _nameToSym;
OpenPOWER on IntegriCloud