PR other/77609: Let the assembler choose ELF section types for miscellaneous named...
authorRoland McGrath <mcgrathr@google.com>
Sat, 5 May 2018 23:35:25 +0000 (23:35 +0000)
committerRoland McGrath <roland@gcc.gnu.org>
Sat, 5 May 2018 23:35:25 +0000 (23:35 +0000)
commitf9ede9571409e8db13fb8226a3ed69cfc9ed8a54
tree5f99569e618da1cea53cac3a2556bedb26b398d9
parent212513950ca0f5269b8e298a8b4c9a0982543449
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.

From-SVN: r259969
gcc/ChangeLog
gcc/varasm.c