https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609
--- Comment #5 from roland at gcc dot gnu.org --- Author: roland Date: Thu Jun 14 01:18:59 2018 New Revision: 261581 URL: https://gcc.gnu.org/viewcvs?rev=261581&root=gcc&view=rev Log: PR other/77609: Let the assembler choose ELF section types for miscellaneous named sections gcc/ PR other/77609 * varasm.c (default_section_type_flags): Set SECTION_NOTYPE for any section for which we don't know a specific type it should have, regardless of name. Previously this was done only for the exact names ".init_array", ".fini_array", and ".preinit_array". (default_elf_asm_named_section): Add comment about relationship with default_section_type_flags and SECTION_NOTYPE. (get_section): Don't consider it a type conflict if one side has SECTION_NOTYPE and the other doesn't, as long as neither has the SECTION_BSS et al used in the default_section_type_flags logic. (cherry picked from commit db7548a2771bbf34cf7430712af7ac670b429958) Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/varasm.c