705ec8a9fe
moved from ld/emultempl/elf32.em to ld/ldlang.c, so apply approximately the same change as upstream, which has description: * ldlang.c (lang_insert_orphan): Add __start_<section> symbol assignment inside output section statement. Ensure only one set of symbols per output section. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-dollar sections before dollar sections. Correct add_child list insertion. Taken from upstream git commit 7e01d69a19a8fd079887f26853c8565da15ff340, with permission to use it under GPLv2 from the author.