[PATCH] D38180: [ELF] - ICF: improve support of SHF_LINK_ORDER sections.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 09:10:57 PDT 2017


grimar created this revision.
Herald added a subscriber: emaste.

Previously when ICF merged 2 code sections it did not take
SHF_LINK_ORDER dependencies at all.
So if one of order sections was absent or different from another one,
ICF still performed code folding, what is not correct.
Patch improves the support, teaching ICF to compare static contents of
SHF_LINK_ORDER sections.


https://reviews.llvm.org/D38180

Files:
  ELF/ICF.cpp
  ELF/InputSection.cpp
  ELF/InputSection.h
  test/ELF/icf-link-order.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38180.116357.patch
Type: text/x-patch
Size: 3750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170922/f51d649c/attachment.bin>


More information about the llvm-commits mailing list