[PATCH] D38790: [ELF] Do not keep symbols if they referenced only from discarded sections.
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 20 07:59:54 PST 2017
ikudrin updated this revision to Diff 123596.
ikudrin edited the summary of this revision.
ikudrin added a comment.
- Extract corrections in the existing tests into https://reviews.llvm.org/D40253.
- Use handling of DT_NEEDED from https://reviews.llvm.org/D40240.
- Don't try to maintain actual `Live` flag for all symbols. Just mark symbols used in relocations in live sections and make the final decision later in `includeInSymtab`.
https://reviews.llvm.org/D38790
Files:
ELF/MarkLive.cpp
ELF/Symbols.h
ELF/Writer.cpp
test/ELF/gc-collect-undefined.s
test/ELF/gc-sections-shared.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38790.123596.patch
Type: text/x-patch
Size: 5323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171120/391f141e/attachment.bin>
More information about the llvm-commits
mailing list