https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95095
--- Comment #7 from Fangrui Song <i at maskray dot me> --- (In reply to Segher Boessenkool from comment #6) > I was under the impression this unique section thing needed the trailing > dot thing. This probably is not true. > > I still think the old "%" thing is much superior to the trailing dot thing, > but that then is orthogonal to the "unique section" thing, so let's ignore > it now :-) > > It still remains that this flag needs a name that says what it *does*, as I > mentioned at the end of Comment 4. -ffunction-sections -fno-unique-section-names => .text.% .text.startup.% .text.hot.% .text.cold.% ... ? I agree that it is superior. If GCC wants to support this scheme, that looks fine to me. It is likely that I can migrate Clang to this scheme as well. I think .text% .text.startup% .text.hot% .text.cold% ... is slightly worse.