This is an archive of the discontinued LLVM Phabricator instance.

Garbage-collected symbols shouldn't make DSOs alive.
Needs ReviewPublic

Authored by ruiu on Nov 20 2017, 1:18 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None

Event Timeline

ruiu created this revision.Nov 20 2017, 1:18 AM
ikudrin added inline comments.
lld/ELF/MarkLive.cpp
219–222

I believe these lines are redundant. In this lambda, we mark sections the externally visible and other special symbols point to, not the symbols themselves. To that moment, we have read symbols from DSOs and includeInDynsym will return true for them. Thus, these lines just result in that IsNeeded is set for all DSOs which have non-weak global symbols.

trying to get phab to send an email.