[lld] r281098 - Add comments.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 9 14:35:38 PDT 2016
Author: ruiu
Date: Fri Sep 9 16:35:38 2016
New Revision: 281098
URL: http://llvm.org/viewvc/llvm-project?rev=281098&view=rev
Log:
Add comments.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=281098&r1=281097&r2=281098&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Fri Sep 9 16:35:38 2016
@@ -478,6 +478,10 @@ template <class ELFT> void SharedFile<EL
}
this->initStringTable();
+
+ // DSOs are identified by soname, and they usually contain
+ // DT_SONAME tag in their header. But if they are missing,
+ // filenames are used as default sonames.
SoName = sys::path::filename(this->getName());
if (!DynamicSec)
More information about the llvm-commits
mailing list