[lld] r250760 - [ELF2/OutputSections] Allocate the correct number of entries after r250739.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 16:32:16 PDT 2015
Author: davide
Date: Mon Oct 19 18:32:16 2015
New Revision: 250760
URL: http://llvm.org/viewvc/llvm-project?rev=250760&view=rev
Log:
[ELF2/OutputSections] Allocate the correct number of entries after r250739.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=250760&r1=250759&r2=250760&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Oct 19 18:32:16 2015
@@ -294,7 +294,9 @@ template <class ELFT> void DynamicSectio
++NumEntries; // DT_INIT
if (FiniSym)
++NumEntries; // DT_FINI
- if (Config->ZNow || Config->Bsymbolic)
+ if (Config->Bsymbolic)
+ ++NumEntries; // DT_FLAGS
+ if (Config->ZNow)
++NumEntries; // DT_FLAGS_1
++NumEntries; // DT_NULL
More information about the llvm-commits
mailing list