This is for PR35877.
Seems simple and isolated implementation. It remembers all sections
that are part of "INSERT AFTER" statement and makes them
to be placed like orphans. That allows orphan placing code to find
and place such sections after regular common and regular orphans.
It looks to be consistent with spec which says:
(https://sourceware.org/binutils/docs/ld/Miscellaneous-Commands.html)
"It inserts all prior linker script statements after (or before) output_section, and also
causes ‘-T’ to not override the default linker script. The exact insertion point is as for
orphan sections.".
"INSERT AFTER" sections can't refer to each other in this implementation.
(it will not place them correctly). Though that does not look what was needed in original
PR request, so should be fine probably.