[lld] r250229 - [ELF2] Don't allocate entry for DT_SYMBOLIC.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 14:39:56 PDT 2015


Author: davide
Date: Tue Oct 13 16:39:55 2015
New Revision: 250229

URL: http://llvm.org/viewvc/llvm-project?rev=250229&view=rev
Log:
[ELF2] Don't allocate entry for DT_SYMBOLIC.

This fixes an oversight from my previous commit. Reported by
Rafael Espindola!

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=250229&r1=250228&r2=250229&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Oct 13 16:39:55 2015
@@ -295,9 +295,6 @@ template <class ELFT> void DynamicSectio
     ++NumEntries; // DT_FINI
   if (Config->ZNow || Config->Bsymbolic)
     ++NumEntries; // DT_FLAGS_1
-  if (Config->Bsymbolic)
-    ++NumEntries; // DT_SYMBOLIC
-
   ++NumEntries; // DT_NULL
 
   Header.sh_size = NumEntries * Header.sh_entsize;




More information about the llvm-commits mailing list