This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Only binaries should have DT_DEBUG entry
ClosedPublic

Authored by phosek on Dec 6 2016, 5:38 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek updated this revision to Diff 80517.Dec 6 2016, 5:38 PM
phosek retitled this revision from to [ELF] Only binaries should have DT_DEBUG entry.
phosek updated this object.
phosek added a reviewer: ruiu.
phosek set the repository for this revision to rL LLVM.
phosek added a project: lld.
phosek added a subscriber: llvm-commits.
ruiu added inline comments.Dec 6 2016, 5:41 PM
ELF/SyntheticSections.cpp
798 ↗(On Diff #80517)

Do you actually want to exclude DSOs?

phosek added inline comments.Dec 6 2016, 5:53 PM
ELF/SyntheticSections.cpp
798 ↗(On Diff #80517)

Yes, only leafs (that is statically or dynamically linked executables) should have DT_DEBUG entry so this should be correct.

ruiu accepted this revision.Dec 6 2016, 5:56 PM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 6 2016, 5:56 PM
This revision was automatically updated to reflect the committed changes.