From 478f8eb6ef1024b6fa6bd3f823746b5c7c957775 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 9 Sep 2016 21:35:38 +0000 Subject: [PATCH] Add comments. llvm-svn: 281098 --- lld/ELF/InputFiles.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index fbe34e6..73bb65d 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -478,6 +478,10 @@ template void SharedFile::parseSoName() { } 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) -- 2.7.4