Solaris emulation check elf_solaris2_before_allocation can be called when ld output is non-ELF, but also when ld output is ELF but not Solaris. Split out from the pr12320 fix due to the indentation change. PR 12320 PR 33177 * emultempl/solaris2.em (elf_solaris_before_allocation): Wrap everything done here in a more rigorous output hash table check.