[PATCH] D27716: [ELF] - Implemented --retain-symbols-file option
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 09:19:33 PST 2016
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
--retain-symbols-file=filename
Retain only the symbols listed in the file filename, discarding all others. filename is simply a flat file, with one symbol name per line. This option is especially useful in environments (such as VxWorks) where a large global symbol table is accumulated gradually, to conserve run-time memory.
Note: though documentation says "--retain-symbols-file does not discard undefined symbols, or symbols needed for relocations.", both bfd and gold do that, and this patch too, like testcase show.
https://reviews.llvm.org/D27716
Files:
ELF/Config.h
ELF/Driver.cpp
ELF/Options.td
ELF/Writer.cpp
test/ELF/retain-symbols-file.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27716.81238.patch
Type: text/x-patch
Size: 4896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161213/b9cf2809/attachment.bin>
More information about the llvm-commits
mailing list