[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
roland at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat May 5 23:36:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609
--- Comment #4 from roland at gcc dot gnu.org ---
Author: roland
Date: Sat May 5 23:35:25 2018
New Revision: 259969
URL: https://gcc.gnu.org/viewcvs?rev=259969&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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/varasm.c
More information about the Gcc-bugs
mailing list