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:
f8b8340
)
[ELF] Only binaries should have DT_DEBUG entry
author
Petr Hosek
<phosek@chromium.org>
Wed, 7 Dec 2016 02:05:42 +0000
(
02:05
+0000)
committer
Petr Hosek
<phosek@chromium.org>
Wed, 7 Dec 2016 02:05:42 +0000
(
02:05
+0000)
The presence of DT_DEBUG entry is unrelated to the existence of entry point.
Differential Revision: https://reviews.llvm.org/D27496
llvm-svn: 288877
lld/ELF/SyntheticSections.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/SyntheticSections.cpp
b/lld/ELF/SyntheticSections.cpp
index
c3888dc
..
3653354
100644
(file)
--- a/
lld/ELF/SyntheticSections.cpp
+++ b/
lld/ELF/SyntheticSections.cpp
@@
-795,7
+795,7
@@
template <class ELFT> void DynamicSection<ELFT>::addEntries() {
if (DtFlags1)
add({DT_FLAGS_1, DtFlags1});
- if (!Config->
Entry.empty()
)
+ if (!Config->
Shared && !Config->Relocatable
)
add({DT_DEBUG, (uint64_t)0});
}