projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ad4e2
)
Add comments.
author
Rui Ueyama
<ruiu@google.com>
Fri, 9 Sep 2016 21:35:38 +0000
(21:35 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Fri, 9 Sep 2016 21:35:38 +0000
(21:35 +0000)
llvm-svn: 281098
lld/ELF/InputFiles.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/InputFiles.cpp
b/lld/ELF/InputFiles.cpp
index
fbe34e6
..
73bb65d
100644
(file)
--- a/
lld/ELF/InputFiles.cpp
+++ b/
lld/ELF/InputFiles.cpp
@@
-478,6
+478,10
@@
template <class ELFT> void SharedFile<ELFT>::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)