[PATCH] D17242: [ELF] - Linkerscript KEEP command.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 13 02:43:17 PST 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.

When link-time garbage collection is in use (-gc-sections), it is often useful to mark sections that should not be eliminated. This is accomplished by surrounding an input section's wildcard entry with KEEP().
Patch implements that command.

http://reviews.llvm.org/D17242

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/MarkLive.cpp
  test/ELF/linkerscript-sections-keep.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17242.47908.patch
Type: text/x-patch
Size: 5657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160213/8bdd4f04/attachment.bin>


More information about the llvm-commits mailing list