This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] Refactor to remove loop copying all Sections in OS->finalize() [NFC]
ClosedPublic

Authored by peter.smith on Dec 7 2017, 9:19 AM.

Details

Summary

Moving the SHF_LINK_ORDER processing out of OutputSection::finalize() means that we no longer need to copy all InputSections as we now only need the first InputSection.

This is patch 2 of 3 in sequence:

  • D40964 Move SHF_LINK_ORDER processing earlier in Writer.cpp [NFC]
  • D40966 Refactor to remove loop copying all Sections in OS->finalize() [NFC]
  • Remove Duplicate .ARM.exidx sections

Diff Detail

Event Timeline

peter.smith created this revision.Dec 7 2017, 9:19 AM
This revision was not accepted when it landed; it landed in state Needs Review.Dec 12 2017, 5:39 AM
This revision was automatically updated to reflect the committed changes.