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.
Can this be just ISD->Sections = Sec->Sections?