summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-03-20 14:33:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-03-20 14:33:33 +0000
commit49592cf67948b720be7d09a3811304a5f91016a8 (patch)
tree6374ea2ee225292c718592abaf88ab47969a4637 /lld/ELF/LinkerScript.cpp
parenta525a2ba75aa810777971aebf12be2eb875f0f6c (diff)
downloadbcm5719-llvm-49592cf67948b720be7d09a3811304a5f91016a8.tar.gz
bcm5719-llvm-49592cf67948b720be7d09a3811304a5f91016a8.zip
Initialize dot.
This would fix an initialized error found by msan. The error is not showing after r298241, but it is not clear why. llvm-svn: 298251
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 644777dd055..9e66151598a 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -430,6 +430,7 @@ void LinkerScriptBase::processCommands(OutputSectionFactory &Factory) {
Aether = make<OutputSection>("", 0, SHF_ALLOC);
Aether->SectionIndex = 1;
CurOutSec = Aether;
+ Dot = 0;
for (unsigned I = 0; I < Opt.Commands.size(); ++I) {
auto Iter = Opt.Commands.begin() + I;
OpenPOWER on IntegriCloud