[PATCH] D40964: [LLD][ELF] Move SHF_LINK_ORDER processing earlier in Writer.cpp [NFC]
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 09:16:56 PST 2017
peter.smith created this revision.
Herald added subscribers: kristof.beyls, emaste, aemerson.
By moving this step before thunk creation and other processing that depends on the size of sections, we permit removal of duplicates in the .ARM.exidx section.
This is patch 1 of 3 in sequence:
- Move SHF_LINK_ORDER processing earlier in Writer.cpp [NFC]
- Refactor to remove loop copying all Sections in OS->finalize() [NFC]
- Remove Duplicate .ARM.exidx sections
This review is dependent on https://reviews.llvm.org/D38361: [ELF] Stop setting output section size early; for the addition of the OutSecPos field that permits the SHF_LINK_ORDER sections to be sorted before assignAddresses().
https://reviews.llvm.org/D40964
Files:
ELF/OutputSections.cpp
ELF/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40964.125977.patch
Type: text/x-patch
Size: 4807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171207/015fe2d1/attachment.bin>
More information about the llvm-commits
mailing list