[PATCH] D34228: Move clearOutputSections before sortSections

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 17:25:54 PDT 2017


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

This is probably the main patch left in unifying our intermediary representation.

It moves the creation of default commands before section sorting. This has the nice effect that we now have one location where we decide where an orphan section should be placed.

Before this patch sortSections would decide the relative location of orphan sections to other sections, but it was up to placeOrphanSection to decide on the exact location.

We now only sort sections we created since the linker script is already in the correct order.


https://reviews.llvm.org/D34228

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34228.102627.patch
Type: text/x-patch
Size: 16040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170615/418c3f77/attachment.bin>


More information about the llvm-commits mailing list