Our code that creates output sections is very similar to code
that handles orphans. Earlier we did integration of LLD scripted/non-scripted logic
so that even fabricate script commands in createSections() and with fabricateDefaultCommands
when no layout specified in script. And I think when there is no SECTION
commands given, all sections are technically orphans, but now we handle script orphans
sections and regular "orphans" sections for non-scripted case differently,
though we can handle them at one place.
That IMO makes code cleaner and simpler. Patch shows the change I am suggesting.