https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111976
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-10-27 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Similar to -fzero-initialized-in-bss we could have -fzero-rodata-in-bss maybe, but note that can also have security implications. A special .robss section might be nice (it could also be "mergeable" with a flag, losing distinct addresses for distinct objects). With -fdata-sections this optimization could be performed by the linker as well.