[ELF] Only binaries should have DT_DEBUG entry
authorPetr Hosek <phosek@chromium.org>
Wed, 7 Dec 2016 02:05:42 +0000 (02:05 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 7 Dec 2016 02:05:42 +0000 (02:05 +0000)
commit668bebed6d5abde6d21650fdc271ee887eb9a928
tree1b8f67974d1ad88a5d8b09c8d6b4f54ac3da5604
parentf8b834049ae0bf13de126c8ca7d2c9628fb9bec9
[ELF] Only binaries should have DT_DEBUG entry

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