https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pkoning at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The generic code wants to emit this into lcomm_section: 1203 if (ADDR_SPACE_GENERIC_P (as) 1204 && !DECL_THREAD_LOCAL_P (decl) 1205 && !(prefer_noswitch_p && targetm.have_switchable_bss_sections) 1206 && bss_initializer_p (decl)) 1207 { 1208 if (!TREE_PUBLIC (decl) 1209 && !((flag_sanitize & SANITIZE_ADDRESS) 1210 && asan_protect_global (decl))) 1211 return lcomm_section; 1212 if (bss_noswitch_section) 1213 return bss_noswitch_section; 1214 } which is a NOSWITCH section, see https://gcc.gnu.org/ml/gcc-patches/2006-02/msg01857.html pdp11 defines ASM_OUTPUT_ALIGNED_LOCAL to pdp11_asm_output_var (similarly for ASM_OUTPUT_ALIGNED_COMMON), but as both are NOSWITCH sections, I think it is wrong to emit it in whatever section is currently active.