[PATCH] D37848: [ELF] - Deduplivate FDEs correctly when two sections are ICFed

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 05:09:11 PDT 2017


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

This is PR34518,

Previously when LLD ICFed 2 sections it leaved 2 duplicate entries in .eh_frame
pointing to the same address. After that in deduplicated them in .eh_frame_header,
adjusting the amount of valid FDEs in header.
As a result excessive entries in .eh_frame and excessive dummy data in .eh_frame_header
was emited to output. Patch fixes that.


https://reviews.llvm.org/D37848

Files:
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h
  test/ELF/eh-frame-hdr-icf-fde.s
  test/ELF/eh-frame-hdr-icf.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37848.115199.patch
Type: text/x-patch
Size: 5937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170914/13d32cb1/attachment.bin>


More information about the llvm-commits mailing list