rts/linker: Consolidate initializer/finalizer handling

Here we extend our treatment of initializer/finalizer priorities to include ELF and in so doing refactor things to share the implementation with PEi386. As well, I fix a subtle misconception of the ordering behavior for .ctors.

Fixes #21847 (closed).

Merge request reports

Loading