[Bug middle-end/123242] GCC build/version string included multiple times in each binary or library
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 21 16:54:48 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123242
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And on ELF target the .comment section is also SHF_MERGE | SHF_STRINGS, so
identical strings in there are actually merged, so one only gets one string for
each unique gcc version string that has participated in the compilation of the
binary or shared library.
No idea whether PE format can do something similar.
More information about the Gcc-bugs
mailing list