https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77422
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> --- That doesn't make sense. The mergeable sections really need to be the same, otherwise nothing gets merged. And, unused constants/strings in those can be removed if nothing uses them, the linker has all the relocations into them and can figure out what is used and what is unused. At least I thought it was working properly from the introduction of mergeable sections in the linker, though haven't tried to verify that.