https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123242
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
For elf targets, GCC outputs, things like:
.ident "GCC:
(Compiler-Explorer-Build-gcc-9de7aee09da35e8f4c434a8d3a75d464d6cc1fcf-binutils-2.44)
16.0.0 20251221 (experimental)"
If you don't want that you can compile with -fno-ident.
Anyways it is not in a loadable section/segment of the binary. So it is only
bloat on file size.
Plus this has been true since at least 2.95.3.