https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110318
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Note I suspect the linker will remove unused strings in the final executable > though. With --gc-sections sometimes the entire .rodata.str1.1 section can be removed, but if it contains an used string it won't happen. -fdata-sections won't separate the strings into multiple sections either.