[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.2 Known to fail||8.1.0 --- Comment #8 from Richard Biener --- Fixed.
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 --- Comment #7 from Gabriel Rauter --- (In reply to Gabriel Rauter from comment #6) > This change breaks the .noinit section on avr which now gets set to PROGBTIS > because the section type is omitted. It should be NOBITS. .noinit regression fixed in binutils https://sourceware.org/bugzilla/show_bug.cgi?id=23570
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 Gabriel Rauter changed: What|Removed |Added CC||rauter.gabriel at gmail dot com --- Comment #6 from Gabriel Rauter --- This change breaks the .noinit section on avr which now gets set to PROGBTIS because the section type is omitted. It should be NOBITS.
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
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=gcc=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
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
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=gcc=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
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 --- Comment #3 from roland at gnu dot org --- https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00981.html
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-09-16 Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- Heh, I have a similar issue with the assember knowing better (and even emitting a warning!) when emitting a .gnu.lto_.debug_info section marked as mergeable strings. Please send patches to gcc-patc...@gcc.gnu.org
[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 --- Comment #1 from roland at gnu dot org --- Created attachment 39626 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39626=edit trunk fix This is the fix that shows the behavior difference reported above.