[PATCH] D38998: [ELF] - Dedupliсate FDEs when sections are ICFed.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 05:11:00 PDT 2017
grimar created this revision.
Herald added a subscriber: emaste.
When LLD do ICF for 2 identical sections it leaves 2 duplicate entries in .eh_frame
pointing to the same address. After that it fixes .eh_frame_header's header,
so that it says it contains single FDE, though section itself contains 2
(it contains garbage data at tail).
As a result excessive entries in .eh_frame and excessive dummy data in .eh_frame_header
emited to output. Patch fixes that. This is PR34518.
https://reviews.llvm.org/D38998
Files:
ELF/SyntheticSections.cpp
test/ELF/eh-frame-hdr-icf-fde.s
test/ELF/eh-frame-hdr-icf.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38998.119296.patch
Type: text/x-patch
Size: 4823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171017/c395d702/attachment.bin>
More information about the llvm-commits
mailing list