[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
Fri Nov 24 02:38:12 PST 2017
ikudrin updated this revision to Diff 124139.
ikudrin added a comment.
- Rebased on the tip.
- This is mostly Rafael's version of the patch.
- Added a check for a weak symbol when setting `IsNeeded`.
- Added the test to check that a weak symbol doesn't cause adding DT_NEEDED; this test might be extracted to a separate patch.
https://reviews.llvm.org/D38790
Files:
ELF/MarkLive.cpp
ELF/SymbolTable.cpp
ELF/Symbols.h
ELF/Writer.cpp
test/ELF/Inputs/gc-sections-shared2.s
test/ELF/gc-collect-undefined.s
test/ELF/gc-sections-shared.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38790.124139.patch
Type: text/x-patch
Size: 6142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171124/abb92df0/attachment.bin>
More information about the llvm-commits
mailing list