[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
Thu Nov 9 03:17:30 PST 2017
ikudrin updated this revision to Diff 122219.
ikudrin retitled this revision from "[ELF] Avoid keeping useless undefined symbols in .dynsym." to "[ELF] Do not keep symbols if they referenced only from discarded sections.".
ikudrin edited the summary of this revision.
ikudrin added a comment.
Herald added a subscriber: arichardson.
- Rebase on the top.
- Add flag 'Live' to Symbol.
- Determine most of the alive symbols during GC phase.
https://reviews.llvm.org/D38790
Files:
ELF/Driver.cpp
ELF/InputSection.cpp
ELF/InputSection.h
ELF/LinkerScript.cpp
ELF/MarkLive.cpp
ELF/SymbolTable.cpp
ELF/Symbols.h
ELF/SyntheticSections.cpp
ELF/SyntheticSections.h
ELF/Writer.cpp
test/ELF/Inputs/shared3.s
test/ELF/gc-collect-undefined.s
test/ELF/gc-sections-shared.s
test/ELF/gnu-hash-table.s
test/ELF/lto/shlib-undefined.ll
test/ELF/progname.s
test/ELF/undef-version-script.s
test/ELF/weak-undef.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38790.122219.patch
Type: text/x-patch
Size: 17253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171109/bd621191/attachment.bin>
More information about the llvm-commits
mailing list