[PATCH] D27496: [ELF] Only binaries should have DT_DEBUG entry
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 18:16:06 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL288877: [ELF] Only binaries should have DT_DEBUG entry (authored by phosek).
Changed prior to commit:
https://reviews.llvm.org/D27496?vs=80517&id=80525#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27496
Files:
lld/trunk/ELF/SyntheticSections.cpp
Index: lld/trunk/ELF/SyntheticSections.cpp
===================================================================
--- lld/trunk/ELF/SyntheticSections.cpp
+++ lld/trunk/ELF/SyntheticSections.cpp
@@ -795,7 +795,7 @@
if (DtFlags1)
add({DT_FLAGS_1, DtFlags1});
- if (!Config->Entry.empty())
+ if (!Config->Shared && !Config->Relocatable)
add({DT_DEBUG, (uint64_t)0});
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27496.80525.patch
Type: text/x-patch
Size: 383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/aeb79d0c/attachment.bin>
More information about the llvm-commits
mailing list