[PATCH] D19490: ELF: Teach section GC to also GC shared symbols.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 12:29:31 PDT 2016


pcc created this revision.
pcc added reviewers: ruiu, rafael, davide, grimar.
pcc added a subscriber: llvm-commits.

This change also fixes a bug in section GC. We need to treat exported
symbols in all output files as GC roots, not just in DSOs or executables
linked with --export-dynamic.

http://reviews.llvm.org/D19490

Files:
  ELF/InputSection.cpp
  ELF/InputSection.h
  ELF/MarkLive.cpp
  ELF/OutputSections.cpp
  test/ELF/gc-sections-shared.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19490.54885.patch
Type: text/x-patch
Size: 9956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160425/e7cb32b4/attachment.bin>


More information about the llvm-commits mailing list